mirror of https://github.com/python/cpython
Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.
This commit is contained in:
parent
76748b7033
commit
ba2eab25ff
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in New Issue