From 9bb539a2fc10cdfa214d75d2bd0a4116e3e28039 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Tue, 21 Jan 2020 15:39:17 -0800 Subject: [PATCH] Work around https://bugs.python.org/issue37380 in tests. --- tests/debug/session.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/debug/session.py b/tests/debug/session.py index bbadf68b..322c8ead 100644 --- a/tests/debug/session.py +++ b/tests/debug/session.py @@ -272,6 +272,10 @@ class Session(object): self.backchannel.close() self.backchannel = None + # Work around https://bugs.python.org/issue37380 + if self.debuggee is not None and self.debuggee.returncode is None: + self.debuggee.returncode = -1 + @property def ignore_unobserved(self): return self.timeline.ignore_unobserved