[pypy-svn] r8326 - pypy/trunk/src/pypy/appspace/test

lac at codespeak.net lac at codespeak.net
Mon Jan 17 10:24:18 CET 2005


Author: lac
Date: Mon Jan 17 10:24:18 2005
New Revision: 8326

Modified:
   pypy/trunk/src/pypy/appspace/test/test_file.py
Log:
Add fix from A. B. Khalid


Modified: pypy/trunk/src/pypy/appspace/test/test_file.py
==============================================================================
--- pypy/trunk/src/pypy/appspace/test/test_file.py	(original)
+++ pypy/trunk/src/pypy/appspace/test/test_file.py	Mon Jan 17 10:24:18 2005
@@ -16,8 +16,10 @@
         assert self.fd.tell() == 0
 
     def test_case_readonly(self):
-        f=_file.file_('/tmp/tt', 'w')
-        assert f.name == '/tmp/tt'
+        from tempfile import mktemp
+        fn = mktemp()
+        f=_file.file_(fn, 'w')
+        assert f.name == fn
         assert f.mode == 'w'
         assert f.closed == False
         assert f.encoding == None # Fix when we find out what this is



More information about the Pypy-commit mailing list