diff options
Diffstat (limited to 'test/py/TestSocket.py')
-rwxr-xr-x | test/py/TestSocket.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/py/TestSocket.py b/test/py/TestSocket.py index ae3160f31..619eb1002 100755 --- a/test/py/TestSocket.py +++ b/test/py/TestSocket.py @@ -36,7 +36,7 @@ class TimeoutTest(unittest.TestCase): self.listen_sock.bind(('localhost', self.port)) self.listen_sock.listen(5) break - except: + except Exception: if i == 49: raise @@ -50,7 +50,7 @@ class TimeoutTest(unittest.TestCase): socket.setTimeout(10) socket.open() leaky.append(socket) - except: + except Exception: self.assert_(time.time() - starttime < 5.0) def testWriteTimeout(self): @@ -64,7 +64,7 @@ class TimeoutTest(unittest.TestCase): while True: lsock.write("hi" * 100) - except: + except Exception: self.assert_(time.time() - starttime < 5.0) |