Skip to content

Commit b804ffa

Browse files
committed
unmark failing tests
1 parent fa118d0 commit b804ffa

File tree

2 files changed

+0
-129
lines changed

2 files changed

+0
-129
lines changed

Lib/test/test_importlib/source/test_file_loader.py

Lines changed: 0 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -359,24 +359,6 @@ def test_overridden_unchecked_hash_based_pyc(self):
359359
) = util.test_both(SimpleTest, importlib=importlib, machinery=machinery,
360360
abc=importlib_abc, util=importlib_util)
361361

362-
# TODO: RUSTPYTHON, get rid of this entire class when all of the following tests are fixed
363-
class Source_SimpleTest(Source_SimpleTest):
364-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
365-
@unittest.expectedFailure
366-
def test_checked_hash_based_pyc(self):
367-
super().test_checked_hash_based_pyc()
368-
369-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
370-
@unittest.expectedFailure
371-
def test_unchecked_hash_based_pyc(self):
372-
super().test_unchecked_hash_based_pyc()
373-
374-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
375-
@unittest.expectedFailure
376-
def test_overridden_unchecked_hash_based_pyc(self):
377-
super().test_overridden_unchecked_hash_based_pyc()
378-
379-
380362
class SourceDateEpochTestMeta(SourceDateEpochTestMeta,
381363
type(Source_SimpleTest)):
382364
pass
@@ -697,24 +679,6 @@ class SourceLoaderBadBytecodeTestPEP451(
697679
machinery=machinery, abc=importlib_abc,
698680
util=importlib_util)
699681

700-
# TODO: RUSTPYTHON, get rid of this entire class when all of the following tests are fixed
701-
class Source_SourceBadBytecodePEP451(Source_SourceBadBytecodePEP451):
702-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
703-
@unittest.expectedFailure
704-
def test_bad_marshal(self):
705-
super().test_bad_marshal()
706-
707-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
708-
@unittest.expectedFailure
709-
def test_no_marshal(self):
710-
super().test_no_marshal()
711-
712-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
713-
@unittest.expectedFailure
714-
def test_non_code_marshal(self):
715-
super().test_non_code_marshal()
716-
717-
718682
class SourceLoaderBadBytecodeTestPEP302(
719683
SourceLoaderBadBytecodeTest, BadBytecodeTestPEP302):
720684
pass
@@ -726,24 +690,6 @@ class SourceLoaderBadBytecodeTestPEP302(
726690
machinery=machinery, abc=importlib_abc,
727691
util=importlib_util)
728692

729-
# TODO: RUSTPYTHON, get rid of this entire class when all of the following tests are fixed
730-
class Source_SourceBadBytecodePEP302(Source_SourceBadBytecodePEP302):
731-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
732-
@unittest.expectedFailure
733-
def test_bad_marshal(self):
734-
super().test_bad_marshal()
735-
736-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
737-
@unittest.expectedFailure
738-
def test_no_marshal(self):
739-
super().test_no_marshal()
740-
741-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
742-
@unittest.expectedFailure
743-
def test_non_code_marshal(self):
744-
super().test_non_code_marshal()
745-
746-
747693
class SourcelessLoaderBadBytecodeTest:
748694

749695
@classmethod
@@ -829,39 +775,6 @@ class SourcelessLoaderBadBytecodeTestPEP451(SourcelessLoaderBadBytecodeTest,
829775
machinery=machinery, abc=importlib_abc,
830776
util=importlib_util)
831777

832-
# TODO: RUSTPYTHON, get rid of this entire class when all of the following tests are fixed
833-
class Source_SourcelessBadBytecodePEP451(Source_SourcelessBadBytecodePEP451):
834-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
835-
@unittest.expectedFailure
836-
def test_magic_only(self):
837-
super().test_magic_only()
838-
839-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
840-
@unittest.expectedFailure
841-
def test_no_marshal(self):
842-
super().test_no_marshal()
843-
844-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
845-
@unittest.expectedFailure
846-
def test_partial_flags(self):
847-
super().test_partial_flags()
848-
849-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
850-
@unittest.expectedFailure
851-
def test_partial_hash(self):
852-
super().test_partial_hash()
853-
854-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
855-
@unittest.expectedFailure
856-
def test_partial_size(self):
857-
super().test_partial_size()
858-
859-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
860-
@unittest.expectedFailure
861-
def test_partial_timestamp(self):
862-
super().test_partial_timestamp()
863-
864-
865778
class SourcelessLoaderBadBytecodeTestPEP302(SourcelessLoaderBadBytecodeTest,
866779
BadBytecodeTestPEP302):
867780
pass
@@ -873,38 +786,5 @@ class SourcelessLoaderBadBytecodeTestPEP302(SourcelessLoaderBadBytecodeTest,
873786
machinery=machinery, abc=importlib_abc,
874787
util=importlib_util)
875788

876-
# TODO: RUSTPYTHON, get rid of this entire class when all of the following tests are fixed
877-
class Source_SourcelessBadBytecodePEP302(Source_SourcelessBadBytecodePEP302):
878-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
879-
@unittest.expectedFailure
880-
def test_magic_only(self):
881-
super().test_magic_only()
882-
883-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
884-
@unittest.expectedFailure
885-
def test_no_marshal(self):
886-
super().test_no_marshal()
887-
888-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
889-
@unittest.expectedFailure
890-
def test_partial_flags(self):
891-
super().test_partial_flags()
892-
893-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
894-
@unittest.expectedFailure
895-
def test_partial_hash(self):
896-
super().test_partial_hash()
897-
898-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
899-
@unittest.expectedFailure
900-
def test_partial_size(self):
901-
super().test_partial_size()
902-
903-
# TODO: RUSTPYTHON, get rid of all three of the following lines when this test is fixed
904-
@unittest.expectedFailure
905-
def test_partial_timestamp(self):
906-
super().test_partial_timestamp()
907-
908-
909789
if __name__ == '__main__':
910790
unittest.main()

Lib/test/test_importlib/test_util.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,6 @@ def test_incorporates_rn(self):
327327
) = util.test_both(MagicNumberTests, util=importlib_util)
328328

329329

330-
# TODO: RUSTPYTHON
331-
@unittest.expectedFailure
332-
def test_incorporates_rn_MONKEYPATCH(self):
333-
self.assertTrue(self.util.MAGIC_NUMBER.endswith(b'\r\n'))
334-
335-
# TODO: RUSTPYTHON
336-
Frozen_MagicNumberTests.test_incorporates_rn = test_incorporates_rn_MONKEYPATCH
337-
338-
339330
class PEP3147Tests:
340331

341332
"""Tests of PEP 3147-related functions: cache_from_source and source_from_cache."""

0 commit comments

Comments
 (0)