mirror of
https://github.com/beetbox/beets.git
synced 2026-02-24 16:23:04 +01:00
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.
This commit is contained in:
parent
5d2b883b72
commit
76221428f8
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue