diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-03 11:08:32 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-03 11:08:32 (GMT) |
commit | fe27ff8936f2654afe2765fca110f72725adcc9d (patch) | |
tree | 47db3ff03402dd090019fe3eaf6f4e9278fa3bc5 /Lib/test/test_dircache.py | |
parent | d2717217ae7403dc1cc51aea1fe8a7736612392a (diff) | |
download | cpython-fe27ff8936f2654afe2765fca110f72725adcc9d.zip cpython-fe27ff8936f2654afe2765fca110f72725adcc9d.tar.gz cpython-fe27ff8936f2654afe2765fca110f72725adcc9d.tar.bz2 |
make this test work when run repeatedly.
Diffstat (limited to 'Lib/test/test_dircache.py')
-rw-r--r-- | Lib/test/test_dircache.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_dircache.py b/Lib/test/test_dircache.py index 52014e2..3f10872 100644 --- a/Lib/test/test_dircache.py +++ b/Lib/test/test_dircache.py @@ -5,13 +5,12 @@ import unittest from test.test_support import run_unittest, TESTFN -import dircache, os, time, sys +import dircache, os, time, sys, tempfile class DircacheTests(unittest.TestCase): def setUp(self): - self.tempdir = TESTFN+"_dir" - os.mkdir(self.tempdir) + self.tempdir = tempfile.mkdtemp() def tearDown(self): for fname in os.listdir(self.tempdir): |