Skip to content

Commit 3b22405

Browse files
committed
Unmark passing tests
1 parent 1cecd2a commit 3b22405

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Lib/test/test_io.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,8 +1537,6 @@ def test_read_on_closed(self):
15371537
self.assertRaises(ValueError, b.peek)
15381538
self.assertRaises(ValueError, b.read1, 1)
15391539

1540-
# TODO: RUSTPYTHON, AssertionError: UnsupportedOperation not raised by truncate
1541-
@unittest.expectedFailure
15421540
def test_truncate_on_read_only(self):
15431541
rawio = self.MockFileIO(b"abc")
15441542
bufio = self.tp(rawio)
@@ -1625,6 +1623,11 @@ def test_bad_readinto_type(self):
16251623
def test_flush_error_on_close(self):
16261624
super().test_flush_error_on_close()
16271625

1626+
# TODO: RUSTPYTHON, AssertionError: UnsupportedOperation not raised by truncate
1627+
@unittest.expectedFailure
1628+
def test_truncate_on_read_only(self): # TODO: RUSTPYTHON, remove when this passes
1629+
super().test_truncate_on_read_only() # TODO: RUSTPYTHON, remove when this passes
1630+
16281631

16291632
class PyBufferedReaderTest(BufferedReaderTest):
16301633
tp = pyio.BufferedReader
@@ -4417,8 +4420,6 @@ def test_open_allargs(self):
44174420
# there used to be a buffer overflow in the parser for rawmode
44184421
self.assertRaises(ValueError, self.open, os_helper.TESTFN, 'rwax+', encoding="utf-8")
44194422

4420-
# TODO: RUSTPYTHON, AssertionError: 22 != 10 : _PythonRunResult(rc=22, out=b'', err=b'')
4421-
@unittest.expectedFailure
44224423
def test_check_encoding_errors(self):
44234424
# bpo-37388: open() and TextIOWrapper must check encoding and errors
44244425
# arguments in dev mode
@@ -4557,6 +4558,11 @@ def test_daemon_threads_shutdown_stdout_deadlock(self):
45574558
def test_daemon_threads_shutdown_stderr_deadlock(self):
45584559
self.check_daemon_threads_shutdown_deadlock('stderr')
45594560

4561+
# TODO: RUSTPYTHON, AssertionError: 22 != 10 : _PythonRunResult(rc=22, out=b'', err=b'')
4562+
@unittest.expectedFailure
4563+
def test_check_encoding_errors(self): # TODO: RUSTPYTHON, remove when this passes
4564+
super().test_check_encoding_errors() # TODO: RUSTPYTHON, remove when this passes
4565+
45604566

45614567
class PyMiscIOTest(MiscIOTest):
45624568
io = pyio

0 commit comments

Comments
 (0)