mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and
test_statistics when python is run with -OO.
This commit is contained in:
commit
b12cb6a550
5 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue