[pypy-svn] r14127 - pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test
nik at codespeak.net
nik at codespeak.net
Sun Jul 3 13:35:01 CEST 2005
Author: nik
Date: Sun Jul 3 13:35:00 2005
New Revision: 14127
Added:
pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_tempfile.py
- copied, changed from r14118, pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_tempfile.py
Log:
Applied 2.3.4 modifications to tempfile tests.
Copied: pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_tempfile.py (from r14118, pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_tempfile.py)
==============================================================================
--- pypy/branch/dist-2.4.1/lib-python/2.4.1/test/test_tempfile.py (original)
+++ pypy/branch/dist-2.4.1/lib-python/modified-2.4.1/test/test_tempfile.py Sun Jul 3 13:35:00 2005
@@ -32,6 +32,9 @@
else:
TEST_FILES = 100
+# Reduced for PyPy
+TEST_FILES = 10
+
# This is organized as one test for each chunk of code in tempfile.py,
# in order of their appearance in the file. Testing which requires
# threads is not done here.
@@ -504,8 +507,9 @@
self.dir = tempfile.mkdtemp()
def tearDown(self):
+ import shutil
if self.dir:
- os.rmdir(self.dir)
+ shutil.rmtree(self.dir)
self.dir = None
class mktemped:
More information about the Pypy-commit
mailing list