aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/py
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2018-02-09 02:36:35 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-09 02:38:01 -0800
commit1d46d62baf83ec90a04ff195094f92c92593793b (patch)
tree4b59ef8ee3a66c8f6124792b16a11cb45ee6da2c /src/test/py
parent88374614b62b17587453137814d264fdaf7bd70e (diff)
python,runfiles library,refactor: rename EnvVar()
Rename the runfiles library's Runfiles.EnvVar() method to EnvVars(), indicating that it may return multiple entries in the dict. In the future this method will return multiple keys, but I want to update the interface ASAP so that it is stable after it's released in Bazel 0.12.0. See https://github.com/bazelbuild/bazel/issues/4460 Change-Id: I8ab3a2a64736ff746dd96fea80ba2f5356dcfcc3 PiperOrigin-RevId: 185118832
Diffstat (limited to 'src/test/py')
-rw-r--r--src/test/py/bazel/testdata/runfiles_test/foo/runfiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/py/bazel/testdata/runfiles_test/foo/runfiles.py b/src/test/py/bazel/testdata/runfiles_test/foo/runfiles.py
index 6d5493f561..1be07c4e8f 100644
--- a/src/test/py/bazel/testdata/runfiles_test/foo/runfiles.py
+++ b/src/test/py/bazel/testdata/runfiles_test/foo/runfiles.py
@@ -52,7 +52,7 @@ def main():
env = {"SYSTEMROOT": os.environ["SYSTEMROOT"]}
else:
env = {}
- env.update(r.EnvVar())
+ env.update(r.EnvVars())
p = subprocess.Popen(
[r.Rlocation(ChildBinaryName("py"))],
env=env,