Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jun 14, 2024
1 parent 818223d commit 00d880c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions psutil/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@
CI_TESTING = APPVEYOR or GITHUB_ACTIONS
COVERAGE = 'COVERAGE_RUN' in os.environ
if LINUX:
with open('/proc/self/cmdline') as f:
QEMU_USER = "/bin/qemu-" in f.read()
QEMU_USER = "/bin/qemu-" in psutil.Process().cmdline()[0]
else:
QEMU_USER = False
# are we a 64 bit process?
Expand Down

0 comments on commit 00d880c

Please sign in to comment.