mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
use modern conditional syntax
This commit is contained in:
parent
1dedd0a4a4
commit
d388c4e02f
1 changed files with 1 additions and 1 deletions
|
@ -575,7 +575,7 @@ class PycacheTests(unittest.TestCase):
|
|||
self.assertTrue(os.path.exists('__pycache__'))
|
||||
self.assertTrue(os.path.exists(os.path.join(
|
||||
'__pycache__', '{}.{}.py{}'.format(
|
||||
TESTFN, self.tag, __debug__ and 'c' or 'o'))))
|
||||
TESTFN, self.tag, 'c' if __debug__ else 'o'))))
|
||||
|
||||
@unittest.skipUnless(os.name == 'posix',
|
||||
"test meaningful only on posix systems")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue