summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-09-18 12:15:10 (GMT)
committerGitHub <noreply@github.com>2019-09-18 12:15:10 (GMT)
commit0a963fbc9c4cf4569f1eadaa2aa1229bb0081256 (patch)
tree8c56b4aaead5f269c769f16b7ff49e5320900b88 /Lib/test/test_regrtest.py
parentda57599af51c602b015b6880123fef6eccdabcf5 (diff)
downloadcpython-0a963fbc9c4cf4569f1eadaa2aa1229bb0081256.zip
cpython-0a963fbc9c4cf4569f1eadaa2aa1229bb0081256.tar.gz
cpython-0a963fbc9c4cf4569f1eadaa2aa1229bb0081256.tar.bz2
bpo-38203: faulthandler.dump_traceback_later() is always available (GH-16249)
dump_traceback_later() and cancel_dump_traceback_later() functions of the faulthandler module are always available since Python 3.7.
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index ef2ee90..5091199 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -54,8 +54,6 @@ class ParseArgsTestCase(unittest.TestCase):
libregrtest._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 = libregrtest._parse_args(['--timeout', '4.2'])
self.assertEqual(ns.timeout, 4.2)
@@ -572,8 +570,7 @@ class ProgramsTestCase(BaseTestCase):
self.python_args = ['-Wd', '-E', '-bb']
self.regrtest_args = ['-uall', '-rwW',
'--testdir=%s' % self.tmptestdir]
- if hasattr(faulthandler, 'dump_traceback_later'):
- self.regrtest_args.extend(('--timeout', '3600', '-j4'))
+ self.regrtest_args.extend(('--timeout', '3600', '-j4'))
if sys.platform == 'win32':
self.regrtest_args.append('-n')