
committed by
Jakub Stasiak

parent
23beb7d43e
commit
a70b4ba483
@@ -104,7 +104,7 @@ class TestGreenSocket(LimitedTestCase):
|
|||||||
s.settimeout(0.1)
|
s.settimeout(0.1)
|
||||||
gs = greenio.GreenSocket(s)
|
gs = greenio.GreenSocket(s)
|
||||||
e = gs.connect_ex(('192.0.2.1', 80))
|
e = gs.connect_ex(('192.0.2.1', 80))
|
||||||
if not e in (errno.EHOSTUNREACH, errno.ENETUNREACH):
|
if e not in (errno.EHOSTUNREACH, errno.ENETUNREACH):
|
||||||
self.assertEqual(e, errno.EAGAIN)
|
self.assertEqual(e, errno.EAGAIN)
|
||||||
|
|
||||||
def test_recv_timeout(self):
|
def test_recv_timeout(self):
|
||||||
|
@@ -336,7 +336,7 @@ def _setup_func(funcopy, mock):
|
|||||||
funcopy.mock_calls = _CallList()
|
funcopy.mock_calls = _CallList()
|
||||||
mock.reset_mock()
|
mock.reset_mock()
|
||||||
ret = funcopy.return_value
|
ret = funcopy.return_value
|
||||||
if _is_instance_mock(ret) and not ret is mock:
|
if _is_instance_mock(ret) and ret is not mock:
|
||||||
ret.reset_mock()
|
ret.reset_mock()
|
||||||
|
|
||||||
funcopy.called = False
|
funcopy.called = False
|
||||||
|
Reference in New Issue
Block a user