Skip to content

Commit 5bc6509

Browse files
committed
fixup
1 parent 2a311c1 commit 5bc6509

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_editable.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,13 @@ def test_editable_rebuild(package_purelib_and_platlib, tmp_path, verbose, args):
247247
try:
248248
# Install editable hooks
249249
sys.meta_path.insert(0, finder)
250-
# Import module and trigger rebuild
251-
import plat # noqa: F401
250+
# Import module and trigger rebuild. Importing any module in the
251+
# Python package triggers the build. Prefer to load the pure Python
252+
# one as Cygwin is not happy when reloading an extension module.
253+
import pure # noqa: F401
252254
finally:
253255
del sys.meta_path[0]
254-
sys.modules.pop('plat', None)
256+
sys.modules.pop('pure', None)
255257

256258

257259
def test_editable_verbose(venv, package_complex, editable_complex, monkeypatch):

0 commit comments

Comments
 (0)