diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-09-08 10:27:33 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-09-08 10:27:33 (GMT) |
commit | 833bf1fcb256ea28d0ecf16ab097ff9de2396cb5 (patch) | |
tree | 3fcd70eb9fce3130a2da65128b59c117c81f680b /Lib/test/test_regrtest.py | |
parent | 9437d7a7fe81a5f80122d8c86ac469d20259eeea (diff) | |
download | cpython-833bf1fcb256ea28d0ecf16ab097ff9de2396cb5.zip cpython-833bf1fcb256ea28d0ecf16ab097ff9de2396cb5.tar.gz cpython-833bf1fcb256ea28d0ecf16ab097ff9de2396cb5.tar.bz2 |
Issue #18935: Fix test_regrtest.test_timeout when built --without-threads (the
'--timeout' option requires faulthandler.dump_traceback_later).
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r-- | Lib/test/test_regrtest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py index 289fb22..353874b 100644 --- a/Lib/test/test_regrtest.py +++ b/Lib/test/test_regrtest.py @@ -3,6 +3,7 @@ Tests of regrtest.py. """ import argparse +import faulthandler import getopt import os.path import unittest @@ -25,6 +26,8 @@ class ParseArgsTestCase(unittest.TestCase): regrtest._parse_args([opt]) self.assertIn('Run Python regression tests.', out.getvalue()) + @unittest.skipUnless(hasattr(faulthandler, 'dump_traceback_later'), + "faulthandler.dump_traceback_later() required") def test_timeout(self): ns = regrtest._parse_args(['--timeout', '4.2']) self.assertEqual(ns.timeout, 4.2) |