Unskip tests in test_importlib.test_read

This commit is contained in:
Padraic Fanning committed 2021-02-25 17:38:37 -05:00
1 parent e51699d9ee
commit febed3b28c
1 file changed
+4 -2
+4 -2
View File
@@ -24,13 +24,15 @@ class ReadTests:
result = resources.read_text(self.data, 'utf-8.file')
self.assertEqual(result, 'Hello, UTF-8 world!\n')
@unittest.skip("TODO: RUSTPYTHON, UnicodeDecodeError: cannot decode byte at index: 0")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_read_text_given_encoding(self):
result = resources.read_text(
self.data, 'utf-16.file', encoding='utf-16')
self.assertEqual(result, 'Hello, UTF-16 world!\n')
@unittest.skip("TODO: RUSTPYTHON, UnicodeDecodeError: cannot decode byte at index: 0")
# TODO: RUSTPYTHON
@unittest.expectedFailure
def test_read_text_with_errors(self):
# Raises UnicodeError without the 'errors' argument.
self.assertRaises(