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 d7d5e87 commit 79e3121Copy full SHA for 79e3121
Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py
@@ -24,6 +24,7 @@
24
MockThreadInfo,
25
MockInterpreterInfo,
26
)
27
+from .helpers import close_and_unlink
28
29
30
class TestLiveStatsCollectorWithMockDisplay(unittest.TestCase):
@@ -865,6 +866,7 @@ def test_run_failed_module_live(self):
865
866
def test_run_failed_script_live(self):
867
"""Test that running a failing script exits with clean error."""
868
script = tempfile.NamedTemporaryFile(suffix=".py")
869
+ self.addCleanup(close_and_unlink, script)
870
script.write(b'1/0\n')
871
script.seek(0)
872
0 commit comments