diff options
Diffstat (limited to 'tests/run-natmodtests.py')
| -rwxr-xr-x | tests/run-natmodtests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run-natmodtests.py b/tests/run-natmodtests.py index f1a2a9746..1fe44bec1 100755 --- a/tests/run-natmodtests.py +++ b/tests/run-natmodtests.py @@ -35,7 +35,9 @@ class __File(io.IOBase): def __init__(self): self.off = 0 def ioctl(self, request, arg): - return 0 + if request == 4: # MP_STREAM_CLOSE + return 0 + return -1 def readinto(self, buf): buf[:] = memoryview(__buf)[self.off:self.off + len(buf)] self.off += len(buf) |
