summaryrefslogtreecommitdiff
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-07-28 23:08:11 +0200
committerÉric Araujo <merwok@netwok.org>2011-07-28 23:08:11 +0200
commitcf534817adc49b2562d175fabd3e3992d25063fe (patch)
treed2cb18e71d6b5cc25384146751b00c2172a327b6 /Lib/test/test_posix.py
parent9e1af03fbb2a9fc1472ac866add02c99b0c88b16 (diff)
parentfc662ddda2bfd43b10c0a4f8a814e36445f22515 (diff)
downloadcpython-git-cf534817adc49b2562d175fabd3e3992d25063fe.tar.gz
Branch merge
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 556305003b..09f04ec348 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -12,10 +12,12 @@ import os
import pwd
import shutil
import stat
+import tempfile
import unittest
import warnings
-_DUMMY_SYMLINK = '%s/dummy-symlink' % os.getenv('TMPDIR', '/tmp')
+_DUMMY_SYMLINK = os.path.join(tempfile.gettempdir(),
+ support.TESTFN + '-dummy-symlink')
class PosixTester(unittest.TestCase):