projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
951a9e3
)
skip if __doc__ is gone
author
Benjamin Peterson
<benjamin@python.org>
Fri, 12 Oct 2012 15:44:19 +0000
(11:44 -0400)
committer
Benjamin Peterson
<benjamin@python.org>
Fri, 12 Oct 2012 15:44:19 +0000
(11:44 -0400)
Lib/test/test_timeit.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_timeit.py
b/Lib/test/test_timeit.py
index eb3b1a156b2273c6d517fde7dfa2869621f0b320..625fb8da90b589ec495713e487273423eaebaf22 100644
(file)
--- 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