Doubled TimeoutTestCase.fuzz, to slash the frequency of bogus failures
authorTim Peters <tim.peters@gmail.com>
Fri, 21 Feb 2003 16:45:41 +0000 (16:45 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 21 Feb 2003 16:45:41 +0000 (16:45 +0000)
on the boxes I use.

Lib/test/test_timeout.py

index 6510ca9c9a5d1f11f7f4394eaac2d3e7d4d6f5cb..5949e51a1fac4ecea21734880b9ec1982066991a 100644 (file)
@@ -87,7 +87,13 @@ class CreationTestCase(unittest.TestCase):
 class TimeoutTestCase(unittest.TestCase):
     """Test case for socket.socket() timeout functions"""
 
-    fuzz = 1.0
+    # There are a number of tests here trying to make sure that an operation
+    # doesn't take too much longer than expected.  But competing machine
+    # activity makes it inevitable that such tests will fail at times.
+    # When fuzz was at 1.0, I (tim) routinely saw bogus failures on Win2K
+    # and Win98SE.  Boosting it to 2.0 helped a lot, but isn't a real
+    # solution.
+    fuzz = 2.0
 
     def setUp(self):
         self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)