diff options
author | Georg Brandl <georg@python.org> | 2010-10-14 07:34:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-14 07:34:56 (GMT) |
commit | 1c2a7b7a698144b8dc5a890a76236e85f0bf763e (patch) | |
tree | dcf917706bf7dfb9915b3332197a095d8dd3b82f /Lib | |
parent | f99a15c3774edabcab04e357008827528440dcf2 (diff) | |
download | cpython-1c2a7b7a698144b8dc5a890a76236e85f0bf763e.zip cpython-1c2a7b7a698144b8dc5a890a76236e85f0bf763e.tar.gz cpython-1c2a7b7a698144b8dc5a890a76236e85f0bf763e.tar.bz2 |
Better check for "any optimize option given".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 617f255..359ef91 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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") |