Commit 0e524d81 authored by Jason Madden's avatar Jason Madden

Increase a timeout for PyPy3

[skip appveyor]
parent b5c8ee9b
...@@ -7,9 +7,9 @@ from gevent.server import StreamServer ...@@ -7,9 +7,9 @@ from gevent.server import StreamServer
import errno import errno
import os import os
# Timeouts very flaky on appveyor # Timeouts very flaky on appveyor and PyPy3
_DEFAULT_SOCKET_TIMEOUT = 0.1 if not greentest.RUNNING_ON_APPVEYOR else 1.0 _DEFAULT_SOCKET_TIMEOUT = 0.1 if not greentest.EXPECT_POOR_TIMER_RESOLUTION else 1.0
_DEFAULT_TEST_TIMEOUT = 5 if not greentest.RUNNING_ON_APPVEYOR else 10 _DEFAULT_TEST_TIMEOUT = 5 if not greentest.EXPECT_POOR_TIMER_RESOLUTION else 10
class SimpleStreamServer(StreamServer): class SimpleStreamServer(StreamServer):
...@@ -451,13 +451,15 @@ try: ...@@ -451,13 +451,15 @@ try:
except ImportError: except ImportError:
pass pass
else: else:
def _file(name, here=os.path.dirname(__file__)):
return os.path.abspath(os.path.join(here, name))
class TestSSLGetCertificate(TestCase): class TestSSLGetCertificate(TestCase):
def _create_server(self): def _create_server(self):
return self.ServerSubClass(('', 0), return self.ServerSubClass(('', 0),
keyfile='server.key', keyfile=_file('server.key'),
certfile='server.crt') certfile=_file('server.crt'))
def get_spawn(self): def get_spawn(self):
return gevent.spawn return gevent.spawn
......
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