Skip to content

Commit ae292f5

Browse files
committed
Mark as CPython-only and mention _Py_FindSourceFile
1 parent 45774d2 commit ae292f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_traceback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ def __del__(self):
524524
b'ZeroDivisionError: division by zero']
525525
self.assertEqual(stderr.splitlines(), expected)
526526

527+
@cpython_only
527528
def test_lost_io_open(self):
528529
# GH-142737: Display the traceback even if io.open is lost
529530
crasher = textwrap.dedent("""\
@@ -535,6 +536,7 @@ def test_lost_io_open(self):
535536
raise RuntimeError("should not crash")
536537
""")
537538

539+
# Create a temporary script to go through _Py_FindSourceFile
538540
with temp_dir() as script_dir:
539541
script = make_script(
540542
script_dir=script_dir,

0 commit comments

Comments
 (0)