Skip to content

Commit fee49a7

Browse files
committed
xfail due to bug in Python
1 parent a2c48ff commit fee49a7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/idom/client/manage.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import shutil
77
import subprocess
8+
import sys
89
from logging import getLogger
910
from pathlib import Path
1011
from tempfile import TemporaryDirectory
@@ -133,6 +134,25 @@ def build(
133134
)
134135

135136

137+
if sys.platform == "win32" and sys.version_info[:2] == (3, 7): # pragma: no cover
138+
139+
def build(
140+
packages: Sequence[str],
141+
clean_build: bool = True,
142+
skip_if_already_installed: bool = True,
143+
) -> None:
144+
msg = (
145+
"A bug in Python 3.7 on Windows causes this feature to break. "
146+
"For more information see: https://bugs.python.org/issue31226"
147+
)
148+
try:
149+
import pytest
150+
except ImportError:
151+
raise NotImplementedError(msg)
152+
else:
153+
pytest.xfail(msg)
154+
155+
136156
def _parse_package_specs(package_strings: Sequence[str]) -> Dict[str, str]:
137157
return {
138158
dep: ver

0 commit comments

Comments
 (0)