Commit 07f83f20 authored by Denis Bilenko's avatar Denis Bilenko

formatting change in test__server.py

parent 1d153107
......@@ -350,14 +350,14 @@ class ExpectedError(Exception):
pass
class TestSSLSocketNotAllowed(TestCase):
if hasattr(socket, 'ssl'):
switch_expected = False
class TestSSLSocketNotAllowed(TestCase):
def get_spawn(self):
return gevent.spawn
switch_expected = False
if hasattr(socket, 'ssl'):
def get_spawn(self):
return gevent.spawn
def test(self):
from gevent.socket import ssl, socket
......@@ -367,6 +367,7 @@ class TestSSLSocketNotAllowed(TestCase):
listener = ssl(listener)
self.assertRaises(TypeError, self.ServerSubClass, listener)
# test non-socket.error exception in accept call: fatal
# test error in spawn(): non-fatal
# test error in spawned handler: non-fatal
......
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