Commit af058652 authored by Michael W. Hudson's avatar Michael W. Hudson

make this test work when run repeatedly.

parent c9e39554
...@@ -5,13 +5,12 @@ ...@@ -5,13 +5,12 @@
import unittest import unittest
from test.test_support import run_unittest, TESTFN from test.test_support import run_unittest, TESTFN
import dircache, os, time, sys import dircache, os, time, sys, tempfile
class DircacheTests(unittest.TestCase): class DircacheTests(unittest.TestCase):
def setUp(self): def setUp(self):
self.tempdir = TESTFN+"_dir" self.tempdir = tempfile.mkdtemp()
os.mkdir(self.tempdir)
def tearDown(self): def tearDown(self):
for fname in os.listdir(self.tempdir): for fname in os.listdir(self.tempdir):
......
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