mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Better check for "any optimize option given".
This commit is contained in:
parent
f99a15c377
commit
1c2a7b7a69
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,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, sys.flags.optimize and 'o' or 'c'))))
|
||||
TESTFN, self.tag, __debug__ and 'c' or 'o'))))
|
||||
|
||||
@unittest.skipUnless(os.name == 'posix',
|
||||
"test meaningful only on posix systems")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue