summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_statistics.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-08 16:16:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-08 16:16:18 (GMT)
commitb12cb6a5509dbaafa05706dd64861bfef9fa42d7 (patch)
treed0021701f3d6d5cba2c293bf769c861e39f6f9b1 /Lib/test/test_statistics.py
parentca616a2709951f2ef8534aaa5933af4cc9d1594d (diff)
parent3e60a9d602c85b738dc74a3c8a196650822e8619 (diff)
downloadcpython-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_statistics.py')
-rw-r--r--Lib/test/test_statistics.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py
index ee585e2..3d30d88 100644
--- a/Lib/test/test_statistics.py
+++ b/Lib/test/test_statistics.py
@@ -8,6 +8,7 @@ import decimal
import doctest
import math
import random
+import sys
import types
import unittest
@@ -625,6 +626,8 @@ class GlobalsTest(unittest.TestCase):
class DocTests(unittest.TestCase):
+ @unittest.skipIf(sys.flags.optimize >= 2,
+ "Docstrings are omitted with -OO and above")
def test_doc_tests(self):
failed, tried = doctest.testmod(statistics)
self.assertGreater(tried, 0)