Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and

test_statistics when python is run with -OO.
This commit is contained in:
Serhiy Storchaka 2013-12-08 18:16:18 +02:00
commit b12cb6a550
5 changed files with 14 additions and 4 deletions

View file

@ -2529,7 +2529,8 @@ class TestMain(unittest.TestCase):
# Just a quick sanity check on the output
self.assertIn(module.__name__, output)
self.assertIn(module.__file__, output)
self.assertIn(module.__cached__, output)
if not sys.flags.optimize:
self.assertIn(module.__cached__, output)
self.assertEqual(err, b'')