Author: Brian Kearns <[email protected]>
Branch: stdlib-2.7.4
Changeset: r63176:daf35bc42622
Date: 2013-04-09 18:00 -0400
http://bitbucket.org/pypy/pypy/changeset/daf35bc42622/

Log:    fix for renamed import upstream

diff --git a/lib-python/2.7/test/test_tempfile.py 
b/lib-python/2.7/test/test_tempfile.py
--- a/lib-python/2.7/test/test_tempfile.py
+++ b/lib-python/2.7/test/test_tempfile.py
@@ -27,8 +27,8 @@
 
 # TEST_FILES may need to be tweaked for systems depending on the maximum
 # number of files that can be opened at one time (see ulimit -n)
-if sys.platform.startswith("openbsd"):
-    TEST_FILES = 64 # ulimit -n defaults to 128 for normal users
+if sys.platform in ('openbsd3', 'openbsd4'):
+    TEST_FILES = 48
 else:
     TEST_FILES = 100
 
@@ -322,7 +322,7 @@
         dir = tempfile.mkdtemp()
         try:
             self.do_create(dir=dir).write("blat")
-            test_support.gc_collect()
+            support.gc_collect()
         finally:
             os.rmdir(dir)
 
@@ -607,7 +607,7 @@
         self.do_create(suf="b")
         self.do_create(pre="a", suf="b")
         self.do_create(pre="aa", suf=".txt")
-        test_support.gc_collect()
+        support.gc_collect()
 
     def test_many(self):
         # mktemp can choose many usable file names (stochastic)
@@ -615,7 +615,7 @@
         for i in extant:
             extant[i] = self.do_create(pre="aa")
         del extant
-        test_support.gc_collect()
+        support.gc_collect()
 
 ##     def test_warning(self):
 ##         # mktemp issues a warning when used
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to