Commit d88131af authored by Ned Deily's avatar Ned Deily

Issue #8746: Use tempfile module to get tempdir and randomize the

link file name.
parent 528c4adc
...@@ -13,10 +13,12 @@ import pwd ...@@ -13,10 +13,12 @@ import pwd
import shutil import shutil
import stat import stat
import sys import sys
import tempfile
import unittest import unittest
import warnings import warnings
_DUMMY_SYMLINK = '%s/dummy-symlink' % os.getenv('TMPDIR', '/tmp') _DUMMY_SYMLINK = os.path.join(tempfile.gettempdir(),
test_support.TESTFN + '-dummy-symlink')
warnings.filterwarnings('ignore', '.* potential security risk .*', warnings.filterwarnings('ignore', '.* potential security risk .*',
RuntimeWarning) RuntimeWarning)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment