mirror of
https://github.com/python/cpython.git
synced 2025-01-24 18:13:57 +08:00
Better check for "any optimize option given".
This commit is contained in:
parent
f99a15c377
commit
1c2a7b7a69
@ -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…
Reference in New Issue
Block a user