Skip to content

Commit

Permalink
fixup! Allow missing .py files if .pyc is present
Browse files Browse the repository at this point in the history
  • Loading branch information
tucked committed Mar 12, 2020
1 parent fc84ff0 commit 712ba5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/create/test_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ def creator_with_pyc_only_cp2_modules(tmp_path, monkeypatch, current_creators):
creator = current_creators[2]
module_name = os.path.relpath("CPython2_patch_modules_module", CURRENT.system_stdlib)
module_path = Path(CURRENT.system_stdlib) / "{}.pyc".format(module_name)
module_path.touch()
with module_path.open(mode="w"):
pass # just a touch

@classmethod
def modules(cls):
Expand Down

0 comments on commit 712ba5a

Please sign in to comment.