Skip to content

Commit febed3b

Browse files
committed
Unskip tests in test_importlib.test_read
1 parent e51699d commit febed3b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Lib/test/test_importlib/test_read.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ def test_read_text_default_encoding(self):
2424
result = resources.read_text(self.data, 'utf-8.file')
2525
self.assertEqual(result, 'Hello, UTF-8 world!\n')
2626

27-
@unittest.skip("TODO: RUSTPYTHON, UnicodeDecodeError: cannot decode byte at index: 0")
27+
# TODO: RUSTPYTHON
28+
@unittest.expectedFailure
2829
def test_read_text_given_encoding(self):
2930
result = resources.read_text(
3031
self.data, 'utf-16.file', encoding='utf-16')
3132
self.assertEqual(result, 'Hello, UTF-16 world!\n')
3233

33-
@unittest.skip("TODO: RUSTPYTHON, UnicodeDecodeError: cannot decode byte at index: 0")
34+
# TODO: RUSTPYTHON
35+
@unittest.expectedFailure
3436
def test_read_text_with_errors(self):
3537
# Raises UnicodeError without the 'errors' argument.
3638
self.assertRaises(

0 commit comments

Comments
 (0)