
committed by
Jakub Stasiak

parent
23beb7d43e
commit
a70b4ba483
@@ -104,7 +104,7 @@ class TestGreenSocket(LimitedTestCase):
|
||||
s.settimeout(0.1)
|
||||
gs = greenio.GreenSocket(s)
|
||||
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)
|
||||
|
||||
def test_recv_timeout(self):
|
||||
|
@@ -336,7 +336,7 @@ def _setup_func(funcopy, mock):
|
||||
funcopy.mock_calls = _CallList()
|
||||
mock.reset_mock()
|
||||
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()
|
||||
|
||||
funcopy.called = False
|
||||
|
Reference in New Issue
Block a user