diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-08 16:16:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-08 16:16:18 (GMT) |
commit | b12cb6a5509dbaafa05706dd64861bfef9fa42d7 (patch) | |
tree | d0021701f3d6d5cba2c293bf769c861e39f6f9b1 /Lib/test/test_functools.py | |
parent | ca616a2709951f2ef8534aaa5933af4cc9d1594d (diff) | |
parent | 3e60a9d602c85b738dc74a3c8a196650822e8619 (diff) | |
download | cpython-b12cb6a5509dbaafa05706dd64861bfef9fa42d7.zip cpython-b12cb6a5509dbaafa05706dd64861bfef9fa42d7.tar.gz cpython-b12cb6a5509dbaafa05706dd64861bfef9fa42d7.tar.bz2 |
Issue #19535: Fixed test_docxmlrpc, test_functools, test_inspect, and
test_statistics when python is run with -OO.
Diffstat (limited to 'Lib/test/test_functools.py')
-rw-r--r-- | Lib/test/test_functools.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_functools.py b/Lib/test/test_functools.py index d044237..75ae7f3 100644 --- a/Lib/test/test_functools.py +++ b/Lib/test/test_functools.py @@ -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 |