Skip to content

Commit

Permalink
Update setuptools/tests/test_wheel.py
Browse files Browse the repository at this point in the history
Attempt to fix flake8
  • Loading branch information
abravalheri committed Mar 14, 2022
1 parent 8122993 commit 8aa366d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setuptools/tests/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ def build_wheel(extra_file_defs=None, **kwargs):
install_tree, project_name,
version, None)
w = Wheel(filename)
script_sh = pathlib.Path(install_dir) / w.egg_name() / "EGG-INFO" / "scripts" / "script.sh"
base = pathlib.Path(install_dir) / w.egg_name()
script_sh = base / "EGG-INFO" / "scripts" / "script.sh"
assert script_sh.exists()
assert oct(stat.S_IMODE(script_sh.stat().st_mode)) == "0o777"

0 comments on commit 8aa366d

Please sign in to comment.