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

@ -1126,7 +1126,8 @@ class TestSingleDispatch(unittest.TestCase):
"Simple test"
return "Test"
self.assertEqual(g.__name__, "g")
self.assertEqual(g.__doc__, "Simple test")
if sys.flags.optimize < 2:
self.assertEqual(g.__doc__, "Simple test")
@unittest.skipUnless(decimal, 'requires _decimal')
@support.cpython_only