X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;fp=mudpy%2Ftests%2Fselftest.py;h=f8caf35aa1583ec0c798af7f2817a57b0cf74c68;hp=c0bfc3cb04eaff3443c8e872a98c8cfa824867b2;hb=097020495fe84c98f4b80489e88c1b1dc6faa49f;hpb=8e082a95481d8f6f30a29f4a95fdd46d24ed992f diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index c0bfc3c..f8caf35 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -519,6 +519,13 @@ def stop_service(service): with open("capture_stderr.log", "w") as serviceerr: serviceerr.write(stderr.decode("utf-8")) + # Error if anything was written on stderr as this may indicate ignored + # exceptions (e.g. ResourceWarning during garbage collection) + if stderr: + tlog("\nERROR: something was written to stderr, see " + "capture_stderr.log for details.") + success = False + return success