diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-03 00:08:40 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-03 00:08:40 +0200 |
commit | d3e41552788cd393170769f7a3887d7aeebb5f2a (patch) | |
tree | 52cd8d1b5b6a84d5e1973582f7a04cb1ac77705f | |
parent | a40c3187a491d22826a1cbcf576f94e00c9a7cc2 (diff) | |
download | psutil-d3e41552788cd393170769f7a3887d7aeebb5f2a.tar.gz |
clearer msg in case of failure
-rw-r--r-- | psutil/tests/test_unicode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psutil/tests/test_unicode.py b/psutil/tests/test_unicode.py index f67e14c2..cf1c02af 100644 --- a/psutil/tests/test_unicode.py +++ b/psutil/tests/test_unicode.py @@ -261,6 +261,8 @@ class _BaseFSAPIsTests(object): return os.path.realpath(os.path.normcase(p)) libpaths = [normpath(x.path) for x in psutil.Process().memory_maps()] + # ...just to have a clearer msg in case of failure + libpaths = [x for x in libpaths if TESTFILE_PREFIX in x] self.assertIn(normpath(funky_path), libpaths) for path in libpaths: self.assertIsInstance(path, str) |