| 1 |
Descriptionscip-debian debian breezy 3.3.22-2 breezy/patches/03_spurious_test_failure#Description.: Fix some spurious test failures |
| 2 |
Authorscip-debian debian breezy 3.3.22-2 breezy/patches/03_spurious_test_failure#Author.: Jelmer Vernooij <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Statusscip-debian debian breezy 3.3.22-2 breezy/patches/03_spurious_test_failure#Status.: Not forwarded upstream (workaround) |
| 4 |
|
| 5 |
Index: unstable/breezy/tests/test_test_server.pyscip-debian debian breezy 3.3.22-2 breezy/upstream/`unstable/breezy/tests/test_test_server.py`: |
| 6 |
=================================================================== |
| 7 |
--- unstable.orig/breezy/tests/test_test_server.pyscip-debian debian breezy 3.3.22-2 breezy/upstream/`unstable.orig/breezy/tests/test_test_server.py`: |
| 8 |
+++ unstable/breezy/tests/test_test_server.py |
| 9 |
@@ -67,7 +67,12 @@ class TCPClient: |
| 10 |
return self.sock.sendall(s) |
| 11 |
|
| 12 |
def read(self, bufsize=4096): |
| 13 |
|
| 14 |
+ try: |
| 15 |
+ return self.sock.recv(bufsize) |
| 16 |
+ except socket.error as e: |
| 17 |
+ if e.errno == errno.ECONNRESET: |
| 18 |
+ return b"" |
| 19 |
+ raise |
| 20 |
|
| 21 |
|
| 22 |
class TCPConnectionHandler(socketserver.BaseRequestHandler): |