We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cb66e commit 7bfee0eCopy full SHA for 7bfee0e
tests/runtime_env_toolchain/toolchain_runs_test.py
@@ -27,7 +27,10 @@ def test_ran(self):
27
if settings["bootstrap_impl"] == "script":
28
# Verify we're running in a venv
29
self.assertNotEqual(sys.prefix, sys.base_prefix)
30
- self.assertIn(".venv/", sys.executable)
+ # .venv/ occurs for a build-time venv.
31
+ # For a runtime created venv, it goes into a temp dir, so
32
+ # look for the /bin/ dir as an indicator.
33
+ self.assertRegex(sys.executable, r"[.]venv/|/bin/")
34
35
36
if __name__ == "__main__":
0 commit comments