diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 29f86a2ec..bde36ada9 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,12 +24,14 @@ env: test_bytes test_calendar test_complex + test_decimal test_dis test_json test_list test_long test_set test_unicode + test_weakref jobs: rust_tests: diff --git a/Lib/_compat_pickle.py b/Lib/_compat_pickle.py index f68496ae6..17b901027 100644 --- a/Lib/_compat_pickle.py +++ b/Lib/_compat_pickle.py @@ -148,6 +148,14 @@ except NameError: else: PYTHON2_EXCEPTIONS += ("WindowsError",) +# NOTE: RUSTPYTHON exceptions +try: + JitError +except NameError: + pass +else: + PYTHON2_EXCEPTIONS += ("JitError",) + for excname in PYTHON2_EXCEPTIONS: NAME_MAPPING[("exceptions", excname)] = ("builtins", excname) diff --git a/Lib/test/test_pickle.py b/Lib/test/test_pickle.py index 3614d03ad..39f0dd636 100644 --- a/Lib/test/test_pickle.py +++ b/Lib/test/test_pickle.py @@ -681,8 +681,6 @@ class CompatPickleTests(unittest.TestCase): module, name = mapping(module, name) self.assertEqual((module, name), (module3, name3)) - # TODO: RUSTPYTHON, AssertionError - @unittest.expectedFailure def test_exceptions(self): self.assertEqual(mapping('exceptions', 'StandardError'), ('builtins', 'Exception')) diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py index d2bb6c589..1228e4b2f 100644 --- a/Lib/test/test_xml_etree.py +++ b/Lib/test/test_xml_etree.py @@ -788,6 +788,8 @@ class ElementTreeTest(unittest.TestCase): ('end-ns', ''), ]) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_initialize_parser_without_target(self): # Explicit None parser = ET.XMLParser(target=None) @@ -797,6 +799,8 @@ class ElementTreeTest(unittest.TestCase): parser2 = ET.XMLParser() self.assertIsInstance(parser2.target, ET.TreeBuilder) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_children(self): # Test Element children iteration @@ -834,12 +838,16 @@ class ElementTreeTest(unittest.TestCase): elem.clear() self.assertEqual(list(elem), []) + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_writestring(self): elem = ET.XML("
text") self.assertEqual(ET.tostring(elem), b'text') elem = ET.fromstring("text") self.assertEqual(ET.tostring(elem), b'text') + # TODO: RUSTPYTHON + @unittest.expectedFailure def test_indent(self): elem = ET.XML("