Author: guido.van.rossum
Date: Sat Aug 26 01:40:32 2006
New Revision: 51621

Modified:
   python/branches/p3yk/Lib/test/test_dbm.py
   python/branches/p3yk/Lib/test/test_gdbm.py
Log:
Don't use a fixed temporary name (gdbm).
Don't use our own temp name creation (dbm).
Should be backported to 2.5.


Modified: python/branches/p3yk/Lib/test/test_dbm.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_dbm.py   (original)
+++ python/branches/p3yk/Lib/test/test_dbm.py   Sat Aug 26 01:40:32 2006
@@ -6,11 +6,11 @@
 import random
 import dbm
 from dbm import error
-from test.test_support import verbose, verify, TestSkipped
+from test.test_support import verbose, verify, TestSkipped, TESTFN
 
 # make filename unique to allow multiple concurrent tests
 # and to minimize the likelihood of a problem from an old file
-filename = '/tmp/delete_me_' + str(random.random())[-6:]
+filename = TESTFN
 
 def cleanup():
     for suffix in ['', '.pag', '.dir', '.db']:

Modified: python/branches/p3yk/Lib/test/test_gdbm.py
==============================================================================
--- python/branches/p3yk/Lib/test/test_gdbm.py  (original)
+++ python/branches/p3yk/Lib/test/test_gdbm.py  Sat Aug 26 01:40:32 2006
@@ -5,9 +5,9 @@
 
 import gdbm
 from gdbm import error
-from test.test_support import verbose, verify, TestFailed
+from test.test_support import verbose, verify, TestFailed, TESTFN
 
-filename= '/tmp/delete_me'
+filename = TESTFN
 
 g = gdbm.open(filename, 'c')
 verify(g.keys() == [])
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to