summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-10-12 15:44:19 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-10-12 15:44:19 (GMT)
commit7a9953edfbbd51dbda60ab31c0e5db5eea968b53 (patch)
treea257d5d29ecf0ec876ee3749aaa4a4f3174d960a /Lib
parent951a9e381bd3603ac628dfd519da091d605338b3 (diff)
downloadcpython-7a9953edfbbd51dbda60ab31c0e5db5eea968b53.zip
cpython-7a9953edfbbd51dbda60ab31c0e5db5eea968b53.tar.gz
cpython-7a9953edfbbd51dbda60ab31c0e5db5eea968b53.tar.bz2
skip if __doc__ is gone
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_timeit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_timeit.py b/Lib/test/test_timeit.py
index eb3b1a1..625fb8d 100644
--- a/Lib/test/test_timeit.py
+++ b/Lib/test/test_timeit.py
@@ -250,6 +250,7 @@ class TestTimeit(unittest.TestCase):
s = self.run_main(seconds_per_increment=60.0, switches=['-r-5'])
self.assertEqual(s, "10 loops, best of 1: 60 sec per loop\n")
+ @unittest.skipIf(sys.flags.optimize >= 2, "need __doc__")
def test_main_help(self):
s = self.run_main(switches=['-h'])
# Note: It's not clear that the trailing space was intended as part of