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.
_Py_FindSourceFile
1 parent 45774d2 commit ae292f5Copy full SHA for ae292f5
Lib/test/test_traceback.py
@@ -524,6 +524,7 @@ def __del__(self):
524
b'ZeroDivisionError: division by zero']
525
self.assertEqual(stderr.splitlines(), expected)
526
527
+ @cpython_only
528
def test_lost_io_open(self):
529
# GH-142737: Display the traceback even if io.open is lost
530
crasher = textwrap.dedent("""\
@@ -535,6 +536,7 @@ def test_lost_io_open(self):
535
536
raise RuntimeError("should not crash")
537
""")
538
539
+ # Create a temporary script to go through _Py_FindSourceFile
540
with temp_dir() as script_dir:
541
script = make_script(
542
script_dir=script_dir,
0 commit comments