X-Git-Url: https://mudpy.org/gitweb?a=blobdiff_plain;ds=inline;f=mudpy%2Ftests%2Fselftest.py;h=02d98a57e49ba4b4cdcdc3fbca9898fb9e6ce442;hb=b8e4ce13c1d87ce8005faac63328bc17104b0790;hp=62395991dc87091cc5a8b0c930f1fb6244d50bf5;hpb=928309d2e331a5fc8336877ecc37fb64450d621c;p=mudpy.git diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 6239599..02d98a5 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -260,6 +260,10 @@ def main(): index, match, received = lusers[conversant].expect( [re.compile(question.encode("utf-8"), flags=re.DOTALL)], 5) captures[conversant] += received.decode("utf-8") + except ConnectionResetError: + print("ERROR: Unable to connect to server.") + success = False + break except EOFError: print("ERROR: luser%s premature disconnection expecting:\n\n" "%s\n\n"