Commit 0a7b14a3 authored by Guido van Rossum's avatar Guido van Rossum

Port timeout and cleanup tweaks from 3.1 release branch.

Re-enable these tests; I can't reproduce the claimed breakage in the
Zope 2.7 tree.
parent 0a7e7680
...@@ -134,10 +134,13 @@ class StartTests(unittest.TestCase): ...@@ -134,10 +134,13 @@ class StartTests(unittest.TestCase):
f = open(file, "rb") f = open(file, "rb")
buf = f.read() buf = f.read()
f.close() f.close()
os.unlink(file)
return buf return buf
def connect(self, port=None, wait=1): def connect(self, port=None, wait=1):
cs = ClientStorage(('', port), wait=wait) cs = ClientStorage(('', port), wait=wait,
min_disconnect_poll=0.1,
max_disconnect_poll=0.2)
cs.close() cs.close()
def testErrNoPort(self): def testErrNoPort(self):
...@@ -188,11 +191,6 @@ class StartTests(unittest.TestCase): ...@@ -188,11 +191,6 @@ class StartTests(unittest.TestCase):
def test_suite(): def test_suite():
# XXX These tests hang on the Zope trunk. Disable for now, as
# start.py won't be supported in ZODB 3.2 anyway.
return None
# shutup warnings about mktemp # shutup warnings about mktemp
import warnings import warnings
warnings.filterwarnings("ignore", "mktemp") warnings.filterwarnings("ignore", "mktemp")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment