Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 296b21a + d388c4e commit d79ac0fCopy full SHA for d79ac0f
1 file changed
Lib/test/test_import.py
@@ -591,7 +591,7 @@ def test_import_pyc_path(self):
591
self.assertTrue(os.path.exists('__pycache__'))
592
self.assertTrue(os.path.exists(os.path.join(
593
'__pycache__', '{}.{}.py{}'.format(
594
- TESTFN, self.tag, __debug__ and 'c' or 'o'))))
+ TESTFN, self.tag, 'c' if __debug__ else 'o'))))
595
596
@unittest.skipUnless(os.name == 'posix',
597
"test meaningful only on posix systems")
0 commit comments