We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17392a7 commit 55f8fe5Copy full SHA for 55f8fe5
Lib/test/support/__init__.py
@@ -512,7 +512,12 @@ def has_no_debug_ranges():
512
return not bool(config['code_debug_ranges'])
513
514
def requires_debug_ranges(reason='requires co_positions / debug_ranges'):
515
- return unittest.skipIf(has_no_debug_ranges(), reason)
+ try:
516
+ skip = has_no_debug_ranges()
517
+ except unittest.SkipTest as e:
518
+ skip = True
519
+ reason = e.args[0] if e.args else reason
520
+ return unittest.skipIf(skip, reason)
521
522
@contextlib.contextmanager
523
def suppress_immortalization(suppress=True):
0 commit comments