Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d388c4e

Browse files
committed
use modern conditional syntax
1 parent 1dedd0a commit d388c4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def test_import_pyc_path(self):
575575
self.assertTrue(os.path.exists('__pycache__'))
576576
self.assertTrue(os.path.exists(os.path.join(
577577
'__pycache__', '{}.{}.py{}'.format(
578-
TESTFN, self.tag, __debug__ and 'c' or 'o'))))
578+
TESTFN, self.tag, 'c' if __debug__ else 'o'))))
579579

580580
@unittest.skipUnless(os.name == 'posix',
581581
"test meaningful only on posix systems")

0 commit comments

Comments
 (0)