From: Benjamin Peterson Date: Fri, 12 Oct 2012 15:44:19 +0000 (-0400) Subject: skip if __doc__ is gone X-Git-Tag: v3.4.0a1~2265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5c40903943790bd598bdfae8da51de59cf10dcd;p=thirdparty%2FPython%2Fcpython.git skip if __doc__ is gone --- diff --git a/Lib/test/test_timeit.py b/Lib/test/test_timeit.py index eb3b1a156b22..625fb8da90b5 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