test/integration/jw-pkg -> test/integration/jw_pkg
The mypy module names of the test tree derive from the full path, anchored by the top-level test/__init__.py, but a file below a path component that is not a valid identifier - the dashes in jw-pkg - falls back to the bare file name, so two same-named test.py drivers collide (the duplicate module error that drove the runme.py and main.py renames). Rename the directory a sane Python name - jw_pkg, that's the better fix. Then name the driver test.py like all the others for consistency. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
85ddd44cd1
commit
61c9479e79
2 changed files with 0 additions and 0 deletions
14
test/integration/jw_pkg/packages/ls/Makefile
Normal file
14
test/integration/jw_pkg/packages/ls/Makefile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
TOPDIR = ../../../../..
|
||||
|
||||
include $(TOPDIR)/make/proj.mk
|
||||
include $(TOPDIR)/make/test-jw-pkg.mk
|
||||
|
||||
all:
|
||||
|
||||
test: test.integration.in-tree
|
||||
test.integration.in-tree:
|
||||
$(TEST_CMD_LINE) --interactive false packages ls bash | grep /bin/bash | sort > test.out
|
||||
diff test.out.expected test.out
|
||||
clean: test.integration.in-tree.clean
|
||||
test.integration.in-tree.clean:
|
||||
rm -f test.out
|
||||
2
test/integration/jw_pkg/packages/ls/test.out.expected
Normal file
2
test/integration/jw_pkg/packages/ls/test.out.expected
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/usr/bin/bash
|
||||
/usr/bin/bashbug
|
||||
Loading…
Reference in a new issue