mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
parent
da57599af5
commit
0a963fbc9c
6 changed files with 10 additions and 38 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue