From 76221428f8dc4526ebf1f2bdb14a33433040de6b Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Wed, 27 Mar 2019 19:33:39 +1100 Subject: [PATCH] Add a DummyIn::close no-op implementation The BOD tests are currently forking a process with a server running, and this attempts to close stdin. Tests were failing due to DummyIn not implementing the close() method. Adding this simple no-op does the trick to allow forking and seems like a harmless addition. --- test/_common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/_common.py b/test/_common.py index f5e65ca76..99f2e968f 100644 --- a/test/_common.py +++ b/test/_common.py @@ -284,6 +284,9 @@ class DummyIn(object): else: self.buf.append(s + '\n') + def close(self): + pass + def readline(self): if not self.buf: if self.out: