aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George2018-06-13 12:47:29 +1000
committerDamien George2018-06-18 12:35:56 +1000
commita5f5552a0a52cfd37f1db4d6df2194a4090561f5 (patch)
tree40031e60ffa2afaa0e759108de198be47005ced3 /tests
parente8398a58567cc94b866d46721fd06289601f5c8a (diff)
tests/unix/extra_coverage: Don't test stream objs with NULL write fun.
This behaviour of a NULL write C method on a stream that uses the write adaptor objects is no longer supported. It was only ever used by the coverage build for testing the fail path of mp_get_stream_raise().
Diffstat (limited to 'tests')
-rw-r--r--tests/unix/extra_coverage.py6
-rw-r--r--tests/unix/extra_coverage.py.exp1
2 files changed, 1 insertions, 6 deletions
diff --git a/tests/unix/extra_coverage.py b/tests/unix/extra_coverage.py
index 65011198d..13721f1f4 100644
--- a/tests/unix/extra_coverage.py
+++ b/tests/unix/extra_coverage.py
@@ -38,11 +38,7 @@ except OSError:
stream.set_error(0)
print(stream.ioctl(0, bytearray(10))) # successful ioctl call
-stream2 = data[3] # is textio and sets .write = NULL
-try:
- print(stream2.write(b'1')) # attempt to call NULL implementation
-except OSError:
- print('OSError')
+stream2 = data[3] # is textio
print(stream2.read(1)) # read 1 byte encounters non-blocking error with textio stream
# test BufferedWriter with stream errors
diff --git a/tests/unix/extra_coverage.py.exp b/tests/unix/extra_coverage.py.exp
index 009874509..9df852757 100644
--- a/tests/unix/extra_coverage.py.exp
+++ b/tests/unix/extra_coverage.py.exp
@@ -90,7 +90,6 @@ b'123'
b'123'
OSError
0
-OSError
None
None
frzstr1