Better check for "any optimize option given".

This commit is contained in:
Georg Brandl 2010-10-14 07:34:56 +00:00
parent f99a15c377
commit 1c2a7b7a69

View File

@ -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")