Skip to content

Commit 35c94c3

Browse files
committed
Correct venv dir name in external venv test
1 parent cea35b6 commit 35c94c3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

bazel/defaults.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ common --heap_dump_on_oom
105105
# notices when a directory changes, if you have a directory listed in the srcs of some target.
106106
# Recommended when using [copy_directory](https://github.com/bazel-contrib/bazel-lib/blob/main/docs/copy_directory.md)
107107
# and [rules_js](https://github.com/aspect-build/rules_js) since npm package are source directories inputs to copy_directory actions.
108-
startup --host_jvm_args="-DBAZEL_TRACK_SOURCE_DIRECTORIES=1"
108+
# startup --host_jvm_args="-DBAZEL_TRACK_SOURCE_DIRECTORIES=1"
109109
# Docs: https://registry.build/flag/bazel?filter=host_jvm_args
110110

111111
# By default, Bazel automatically creates __init__.py files for py_binary and py_test targets.

py/tests/py-external-venv/test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env python3
22

3-
import os
43
import sys
54
import site
65

@@ -19,10 +18,10 @@
1918
# use a different layout.
2019

2120
# The virtualenv changes the sys.prefix, which should be in our runfiles
22-
assert sys.prefix.endswith("/py/tests/py-external-venv/.venv")
21+
assert sys.prefix.endswith("/py/tests/py-external-venv/.test")
2322

2423
# That prefix should also be "the" prefix per site.PREFIXES
25-
assert site.PREFIXES[0].endswith("/py/tests/py-external-venv/.venv")
24+
assert site.PREFIXES[0].endswith("/py/tests/py-external-venv/.test")
2625

2726
# The virtualenv also changes the sys.executable (if we've done this right)
28-
assert sys.executable.find("/py/tests/py-external-venv/.venv/bin/python") != -1
27+
assert sys.executable.find("/py/tests/py-external-venv/.test/bin/python") != -1

0 commit comments

Comments
 (0)