Skip to content

Commit e028aa6

Browse files
committed
Add more checks for case sensitivity in editable_wheel tests
1 parent db3743a commit e028aa6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setuptools/tests/test_editable_install.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ def test_case_sensitivity(self, tmp_path):
609609
with pytest.raises(ImportError, match="\'foo\\.BAR\'"):
610610
import_module("foo.BAR.lowercase")
611611

612+
with pytest.raises(ImportError, match="\'FOO\'"):
613+
import_module("FOO.bar.lowercase")
614+
612615
mod = import_module("foo.lowercase")
613616
assert mod.x == 1
614617

@@ -647,6 +650,9 @@ def test_namespace_case_sensitivity(self, tmp_path):
647650
bar = import_module("ns.othername.foo.bar")
648651
assert bar.c == 42
649652

653+
with pytest.raises(ImportError, match="\'NS\'"):
654+
import_module("NS.othername.foo")
655+
650656
with pytest.raises(ImportError, match="\'ns\\.othername\\.FOO\\'"):
651657
import_module("ns.othername.FOO")
652658

0 commit comments

Comments
 (0)