Skip to content

Commit c74793c

Browse files
gh-140741: Fix test added in gh-140745 (#140760)
Commit
1 parent 8706167 commit c74793c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_profiling/test_sampling_profiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,6 +2093,8 @@ def test_script_error_treatment(self):
20932093
)
20942094
output = result.stdout + result.stderr
20952095

2096+
if "PermissionError" in output:
2097+
self.skipTest("Insufficient permissions for remote profiling")
20962098
self.assertNotIn("Script file not found", output)
20972099
self.assertIn("No such file or directory: 'nonexistent_file.txt'", output)
20982100

0 commit comments

Comments
 (0)