Strip the .py suffix
This commit is contained in:
parent
f0a871dd91
commit
ea57f84002
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ def py_project(name=None,
|
||||||
for src in test_srcs:
|
for src in test_srcs:
|
||||||
if "test_" in src:
|
if "test_" in src:
|
||||||
py_pytest(
|
py_pytest(
|
||||||
name=src.split("/")[-1],
|
name=src.split("/")[-1].replace(".py", ""),
|
||||||
srcs=[src] + [f for f in test_srcs if "test_" not in f],
|
srcs=[src] + [f for f in test_srcs if "test_" not in f],
|
||||||
deps=[lib_name] + (test_deps or []),
|
deps=[lib_name] + (test_deps or []),
|
||||||
data=test_data,
|
data=test_data,
|
||||||
|
|
Loading…
Reference in a new issue