[Python-checkins] python/dist/src/Lib/test test_dircache.py, 1.6,
1.7
mwh at users.sourceforge.net
mwh at users.sourceforge.net
Tue Aug 3 13:08:34 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27984/Lib/test
Modified Files:
test_dircache.py
Log Message:
make this test work when run repeatedly.
Index: test_dircache.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_dircache.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_dircache.py 20 Sep 2003 15:52:21 -0000 1.6
--- test_dircache.py 3 Aug 2004 11:08:32 -0000 1.7
***************
*** 6,16 ****
import unittest
from test.test_support import run_unittest, TESTFN
! import dircache, os, time, sys
class DircacheTests(unittest.TestCase):
def setUp(self):
! self.tempdir = TESTFN+"_dir"
! os.mkdir(self.tempdir)
def tearDown(self):
--- 6,15 ----
import unittest
from test.test_support import run_unittest, TESTFN
! import dircache, os, time, sys, tempfile
class DircacheTests(unittest.TestCase):
def setUp(self):
! self.tempdir = tempfile.mkdtemp()
def tearDown(self):
More information about the Python-checkins
mailing list