Skip to content

Commit f0eff93

Browse files
committed
Add comment about WSL peculiarity
1 parent 52a365f commit f0eff93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_perf_profiler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@ def _is_perf_version_at_least(major, minor):
506506
# The output of perf --version looks like "perf version 6.7-3" but
507507
# it can also be perf version "perf version 5.15.143", or even include
508508
# a commit hash in the version string, like "6.12.9.g242e6068fd5c"
509+
#
510+
# PermissionError is raised if perf does not exist on the Windows Subsystem
511+
# for Linux, see #134987
509512
try:
510513
output = subprocess.check_output(["perf", "--version"], text=True)
511514
except (subprocess.CalledProcessError, FileNotFoundError, PermissionError):

0 commit comments

Comments
 (0)