Skip to content

Commit 54be163

Browse files
committed
fixup! fixup! gh-138122: Refactor the CLI of profile.sampling into subcommands
1 parent d6ca1b3 commit 54be163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_profiling/test_sampling_profiler/test_advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def worker(x):
265265
proc.kill()
266266
stdout, stderr = proc.communicate()
267267

268-
if "PermissionError" in stderr:
268+
if "Permission Error" in stderr:
269269
self.skipTest("Insufficient permissions for remote profiling")
270270

271271
self.assertIn("Results: [2, 4, 6]", stdout)

Lib/test/test_profiling/test_sampling_profiler/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def test_script_error_treatment(self):
750750
)
751751
output = result.stdout + result.stderr
752752

753-
if "PermissionError" in output:
753+
if "Permission Error" in output:
754754
self.skipTest("Insufficient permissions for remote profiling")
755755
self.assertNotIn("Script file not found", output)
756756
self.assertIn(

0 commit comments

Comments
 (0)