Skip to content

Commit

Permalink
test: Do not read the contents of .exe wrappers
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 16, 2024
1 parent c76bb4c commit 5486c8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def all_files(top_path):
loader = importlib.machinery.SourcelessFileLoader(
"testpkg", file_path)
data = loader.get_code("testpkg").co_filename
elif f.endswith(".exe"):
data = ""
else:
data = file_path.read_text().splitlines()[0]
yield (str(file_path.relative_to(top_path)),
Expand Down

0 comments on commit 5486c8a

Please sign in to comment.