Skip to content

Commit bd8e557

Browse files
authored
test(importlib): Enable bad bytecode tests for PEP451 loaders (#5997)
1 parent f8d03fd commit bd8e557

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Lib/test/test_importlib/source/test_file_loader.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -672,10 +672,9 @@ def test_read_only_bytecode(self):
672672
os.chmod(bytecode_path, stat.S_IWUSR)
673673

674674

675-
# TODO: RUSTPYTHON
676-
# class SourceLoaderBadBytecodeTestPEP451(
677-
# SourceLoaderBadBytecodeTest, BadBytecodeTestPEP451):
678-
# pass
675+
class SourceLoaderBadBytecodeTestPEP451(
676+
SourceLoaderBadBytecodeTest, BadBytecodeTestPEP451):
677+
pass
679678

680679

681680
# (Frozen_SourceBadBytecodePEP451,
@@ -772,10 +771,9 @@ def test_non_code_marshal(self):
772771
self._test_non_code_marshal(del_source=True)
773772

774773

775-
# TODO: RUSTPYTHON
776-
# class SourcelessLoaderBadBytecodeTestPEP451(SourcelessLoaderBadBytecodeTest,
777-
# BadBytecodeTestPEP451):
778-
# pass
774+
class SourcelessLoaderBadBytecodeTestPEP451(SourcelessLoaderBadBytecodeTest,
775+
BadBytecodeTestPEP451):
776+
pass
779777

780778

781779
# (Frozen_SourcelessBadBytecodePEP451,

0 commit comments

Comments
 (0)