diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-12 15:44:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-12 15:44:19 (GMT) |
commit | a5c40903943790bd598bdfae8da51de59cf10dcd (patch) | |
tree | 143df9e2b196bfae2261a9a1a4cfafcfbe2c154f /Lib | |
parent | fa5f75a7ceac6c40b72484b73dfa2e7434a2c1a8 (diff) | |
download | cpython-a5c40903943790bd598bdfae8da51de59cf10dcd.zip cpython-a5c40903943790bd598bdfae8da51de59cf10dcd.tar.gz cpython-a5c40903943790bd598bdfae8da51de59cf10dcd.tar.bz2 |
skip if __doc__ is gone
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_timeit.py | 1 |
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 |