]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-140741: Fix test added in gh-140745 (#140760)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Wed, 29 Oct 2025 16:10:58 +0000 (16:10 +0000)
committerGitHub <noreply@github.com>
Wed, 29 Oct 2025 16:10:58 +0000 (16:10 +0000)
Commit

Lib/test/test_profiling/test_sampling_profiler.py

index cbfb21d3512eee3593876f5e9c0111b838f8ebd6..5b924cb24531b6bb520860866be6e828d57b87c3 100644 (file)
@@ -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)