From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Wed, 29 Oct 2025 16:10:58 +0000 (+0000) Subject: gh-140741: Fix test added in gh-140745 (#140760) X-Git-Tag: v3.15.0a2~281 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c74793c450249b90dd8aa01889a33b3d236c6aa9;p=thirdparty%2FPython%2Fcpython.git gh-140741: Fix test added in gh-140745 (#140760) Commit --- diff --git a/Lib/test/test_profiling/test_sampling_profiler.py b/Lib/test/test_profiling/test_sampling_profiler.py index cbfb21d3512e..5b924cb24531 100644 --- a/Lib/test/test_profiling/test_sampling_profiler.py +++ b/Lib/test/test_profiling/test_sampling_profiler.py @@ -2093,6 +2093,8 @@ class TestSampleProfilerErrorHandling(unittest.TestCase): ) output = result.stdout + result.stderr + if "PermissionError" in output: + self.skipTest("Insufficient permissions for remote profiling") self.assertNotIn("Script file not found", output) self.assertIn("No such file or directory: 'nonexistent_file.txt'", output)