summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-05-07 14:45:12 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2017-05-07 14:45:12 +0200
commit86b408d94681c190491b52e57cca1296ccd790c4 (patch)
treeba43b6cba64b8d56029aaecb2c8311e78c34691a
parentef7edab7cdb519756b015c51f1618576b54f04f8 (diff)
downloadpsutil-86b408d94681c190491b52e57cca1296ccd790c4.tar.gz
fix AttributeError
-rw-r--r--psutil/tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py
index edbfaa50..0de94fd4 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -990,7 +990,7 @@ else:
dst = tempfile.mktemp(prefix=dst_prefix, suffix=ext)
libs = [x.path for x in psutil.Process().memory_maps()
if os.path.splitext(x.path)[1].lower() == ext and
- 'python' in x.lower() and 'wow64' not in x.lower()]
+ 'python' in x.path.lower() and 'wow64' not in x.path.lower()]
src = random.choice(libs)
shutil.copyfile(src, dst)
cfile = None