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 b1a5082 commit cfea35bCopy full SHA for cfea35b
Lib/test/test_profiling/test_sampling_profiler/test_integration.py
@@ -635,7 +635,7 @@ def test_sample_target_module(self):
635
)
636
class TestSampleProfilerErrorHandling(unittest.TestCase):
637
def test_invalid_pid(self):
638
- with self.assertRaises(SystemExit):
+ with self.assertRaises((SystemExit, PermissionError)):
639
collector = PstatsCollector(sample_interval_usec=100, skip_idle=False)
640
profiling.sampling.sample.sample(-1, collector, duration_sec=1)
641
0 commit comments