summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-04-24 21:29:05 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2020-04-24 21:29:05 +0200
commitf37145be9791214fa6f7a26ecde4fdf730f4dd19 (patch)
tree53d54196cc39e1b32f168508f95bde8b99fc0ad0
parent7195236446c3e39bf9dbc99c3c68e16034dd6d38 (diff)
downloadpsutil-testfn.tar.gz
try to fix OSX/Travis failuretestfn
-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 f12617a9..187552d5 100644
--- a/psutil/tests/__init__.py
+++ b/psutil/tests/__init__.py
@@ -793,7 +793,7 @@ def get_testfn(suffix="", dir=None):
name = tempfile.mktemp(prefix=prefix, suffix=suffix, dir=dir)
if not os.path.exists(name): # also include dirs
_testfiles_created.add(name)
- return name
+ return os.path.realpath(name) # needed for OSX
# ===================================================================