Skip to content

Commit 0d187a6

Browse files
committed
Fix
1 parent 29b6115 commit 0d187a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ class UnseekableWriter(self.MockUnseekableIO):
499499
(self.BytesIO, "rws"), (self.StringIO, "rws"),
500500
)
501501

502-
def do_test(obj):
502+
def do_test(obj, abilities):
503503
readable = "r" in abilities
504504
self.assertEqual(obj.readable(), readable)
505505
writable = "w" in abilities
@@ -555,7 +555,7 @@ def do_test(obj):
555555
if test == pipe_writer and not threading_helper.can_start_thread:
556556
skipTest()
557557
with test() as obj:
558-
do_test(obj)
558+
do_test(obj, abilities)
559559

560560

561561
def test_open_handles_NUL_chars(self):

0 commit comments

Comments
 (0)