mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Doubled TimeoutTestCase.fuzz, to slash the frequency of bogus failures
on the boxes I use.
This commit is contained in:
parent
d7c1723742
commit
14821c5914
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue