Skip to content

Commit 1e96a79

Browse files
fix(py_pytest_test): shim path wasn't portable
1 parent ac32532 commit 1e96a79

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

python_pytest/defs.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ def py_pytest_test(name, srcs, deps = [], args = [], **kwargs):
1818
)
1919
```
2020
"""
21+
shim_label = Label("//python_pytest:pytest_shim.py")
22+
2123
py_test(
2224
name = name,
2325
srcs = [
24-
"//python_pytest:pytest_shim.py",
26+
shim_label,
2527
] + srcs,
26-
main = "//python_pytest:pytest_shim.py",
28+
main = shim_label,
2729
args = [
2830
"--capture=no",
2931
] + args + ["$(location :%s)" % x for x in srcs],

0 commit comments

Comments
 (0)