Skip to content

Commit c9d369c

Browse files
committed
Run the test on Windows, but don't check the file mode
1 parent 35e0340 commit c9d369c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setuptools/tests/test_wheel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ def sys_tags():
618618
'onnxruntime-0.1.2-cp36-cp36m-manylinux1_x86_64.whl').is_compatible()
619619

620620

621-
@pytest.mark.skipif(sys.platform == 'win32', reason='non-Windows only')
622621
def test_wheel_mode():
623622
@contextlib.contextmanager
624623
def build_wheel(extra_file_defs=None, **kwargs):
@@ -699,4 +698,6 @@ def build_wheel(extra_file_defs=None, **kwargs):
699698
base = pathlib.Path(install_dir) / w.egg_name()
700699
script_sh = base / "EGG-INFO" / "scripts" / "script.sh"
701700
assert script_sh.exists()
702-
assert oct(stat.S_IMODE(script_sh.stat().st_mode)) == "0o777"
701+
if sys.platform != 'win32':
702+
# Editable file mode has no effect on Windows
703+
assert oct(stat.S_IMODE(script_sh.stat().st_mode)) == "0o777"

0 commit comments

Comments
 (0)