]> granicus.if.org Git - python/commitdiff
test_many(): open only 100 temp files, not 1000. Some systems don't
authorGuido van Rossum <guido@python.org>
Wed, 14 Aug 2002 14:52:02 +0000 (14:52 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 14 Aug 2002 14:52:02 +0000 (14:52 +0000)
allow that many open files per process.  I don't see that 1000 makes
any difference for the test.

Lib/test/test_tempfile.py

index 09d30abed1b0b76b646a18bf508fb7cff288ae3c..1ea0d003b0c77e283cd27bd2dd5dc4974b4fb831 100644 (file)
@@ -156,7 +156,7 @@ class test__RandomNameSequence(TC):
 
         dict = {}
         r = self.r
-        for i in xrange(1000):
+        for i in xrange(100):
             s = r.next()
             self.nameCheck(s, '', '', '')
             self.failIf(s in dict)