pep8: trivial fixes

Closes #161 (GH)
This commit is contained in:
Christoph Gysin
2014-11-05 22:31:39 +02:00
committed by Jakub Stasiak
parent 23beb7d43e
commit a70b4ba483
4 changed files with 6 additions and 6 deletions

View File

@@ -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):

View File

@@ -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