GeezerVison is showing github.com — mark filing tests for test_struct · RustPython/RustPython@15ea337
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_struct.py +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -658,6 +658,8 @@ def test_format_attr(self): |
658 | 658 | s2 = struct.Struct(s.format.encode()) |
659 | 659 | self.assertEqual(s2.format, s.format) |
660 | 660 |
|
| 661 | + # TODO: RUSTPYTHON |
| 662 | + @unittest.expectedFailure |
661 | 663 | def test_struct_cleans_up_at_runtime_shutdown(self): |
662 | 664 | code = """if 1: |
663 | 665 | import struct |
@@ -703,6 +705,8 @@ def test__struct_types_immutable(self): |
703 | 705 | cls.x = 1 |
704 | 706 |
|
705 | 707 |
|
| 708 | + # TODO: RUSTPYTHON |
| 709 | + @unittest.expectedFailure |
706 | 710 | def test_issue35714(self): |
707 | 711 | # Embedded null characters should not be allowed in format strings. |
708 | 712 | for s in '\0', '2\0i', b'\0': |
@@ -737,6 +741,8 @@ def _check_iterator(it): |
737 | 741 | with self.assertRaises(struct.error): |
738 | 742 | s.iter_unpack(b"12") |
739 | 743 |
|
| 744 | + # TODO: RUSTPYTHON |
| 745 | + @unittest.expectedFailure |
740 | 746 | def test_uninstantiable(self): |
741 | 747 | iter_unpack_type = type(struct.Struct(">ibcp").iter_unpack(b"")) |
742 | 748 | self.assertRaises(TypeError, iter_unpack_type) |
|