GeezerVison is showing github.com — Remove expectedFailure for encoding tests now passing · RustPython/RustPython@bb805d3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_importlib/source/test_source_encoding.py -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -62,14 +62,12 @@ def test_default_encoding(self): |
62 | 62 | self.run_test(self.source_line.encode('utf-8')) |
63 | 63 |
|
64 | 64 | # [encoding first line] |
65 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 17 |
66 | 65 | def test_encoding_on_first_line(self): |
67 | 66 | encoding = 'Latin-1' |
68 | 67 | source = self.create_source(encoding) |
69 | 68 | self.run_test(source) |
70 | 69 |
|
71 | 70 | # [encoding second line] |
72 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 34 |
73 | 71 | def test_encoding_on_second_line(self): |
74 | 72 | source = b"#/usr/bin/python\n" + self.create_source('Latin-1') |
75 | 73 | self.run_test(source) |
@@ -84,7 +82,6 @@ def test_bom_and_utf_8(self): |
84 | 82 | self.run_test(source) |
85 | 83 |
|
86 | 84 | # [BOM conflict] |
87 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; UnicodeDecodeError: invalid utf-8 sequence of 1 bytes from index 20 |
88 | 85 | def test_bom_conflict(self): |
89 | 86 | source = codecs.BOM_UTF8 + self.create_source('latin-1') |
90 | 87 | with self.assertRaises(SyntaxError): |
|
Collapse file
Copy file name to clipboardExpand all lines: Lib/test/test_runpy.py -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -752,7 +752,6 @@ def test_main_recursion_error(self): |
752 | 752 | with infinite_recursion(25): |
753 | 753 | self.assertRaises(RecursionError, run_path, zip_name) |
754 | 754 |
|
755 | | - @unittest.expectedFailure # TODO: RUSTPYTHON; detect encoding comments in files |
756 | 755 | def test_encoding(self): |
757 | 756 | with temp_dir() as script_dir: |
758 | 757 | filename = os.path.join(script_dir, 'script.py') |
|