changeset: 71509:080035e58bab parent: 71506:4feb889d3bed parent: 71508:4e4554aa1453 user: Ned Deily date: Tue Jul 26 13:56:49 2011 -0700 files: Lib/test/test_posix.py description: Issue #8746: Use tempfile module to get tempdir and randomize the link file name. diff -r 4feb889d3bed -r 080035e58bab Lib/test/test_posix.py --- a/Lib/test/test_posix.py Tue Jul 26 11:38:04 2011 -0400 +++ b/Lib/test/test_posix.py Tue Jul 26 13:56:49 2011 -0700 @@ -13,10 +13,12 @@ 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):

AltStyle によって変換されたページ (->オリジナル) /