Skip to content

Commit fcca3f9

Browse files
committed
Test skipping pyc at lower level
1 parent 2d5912e commit fcca3f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,13 @@ def get_code(self, fullname):
821821
hash_based = False
822822
check_source = True
823823
try:
824-
# DO NOT MERGE - just testing unconditionally skipping this path
825-
raise NotImplementedError()
826824
bytecode_path = cache_from_source(source_path)
827825
except NotImplementedError:
828826
bytecode_path = None
829827
else:
830828
try:
829+
# DO NOT MERGE - just testing unconditionally skipping this path
830+
raise OSError()
831831
st = self.path_stats(source_path)
832832
except OSError:
833833
pass
@@ -889,6 +889,8 @@ def get_code(self, fullname):
889889
data = _code_to_timestamp_pyc(code_object, source_mtime,
890890
len(source_bytes))
891891
try:
892+
# DO NOT MERGE - just testing unconditionally skipping this path
893+
raise NotImplementedError()
892894
self._cache_bytecode(source_path, bytecode_path, data)
893895
except NotImplementedError:
894896
pass

0 commit comments

Comments
 (0)