rules_python
rules_python copied to clipboard
windows pytest bug
🐞 bug report
Affected Rule
The issue is caused by the rule: py_test()🔬 Minimal Reproduction
🔥 Exception or Error
import os
print(os.getcwd())
should be C:\Users\MSI-PC_bazel_MSI-PC\27b2qbns..... but be C:\Users\MSI-PC\AppData\Local\Temp\Bazel.runfiles_hhzyym94\runfiles\smartmore_smore_xrack

🌍 Your Environment
Operating System:
windows 10
Output of bazel version:
5.1.0
Rules_python version:
default
Anything else relevant?
Can you describe the error more clearly? Tests are run in a temporary "sandbox" location, there shouldn't be any expectation of the CWD. Unless I have misunderstood the bug report?
This issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"