summaryrefslogtreecommitdiff
path: root/Lib/test/test_dtrace.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_dtrace.py')
-rw-r--r--Lib/test/test_dtrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dtrace.py b/Lib/test/test_dtrace.py
index ca239b321b..47a501018a 100644
--- a/Lib/test/test_dtrace.py
+++ b/Lib/test/test_dtrace.py
@@ -79,7 +79,7 @@ class TraceBackend:
try:
output = self.trace(abspath("assert_usable" + self.EXTENSION))
output = output.strip()
- except FileNotFoundError as fnfe:
+ except (FileNotFoundError, PermissionError) as fnfe:
output = str(fnfe)
if output != "probe: success":
raise unittest.SkipTest(