Skip to content

Commit a32871a

Browse files
committed
-added comments
-version up
1 parent 3f672d9 commit a32871a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/rez/tests/test_shells.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,14 @@ def test_rcfile(self):
181181
self.assertEqual(_stdout(p), "Hello Rez World!")
182182
os.remove(path)
183183

184+
# TODO get these shells working again
184185
@per_available_shell(exclude=["cmd", "powershell", "pwsh", "csh", "tcsh"])
185186
@install_dependent()
186187
def test_rez_env_output(self):
187188
target_shell = config.default_shell # overridden by test util
188189

189190
def _test(txt):
190-
# Assumes that the shell has an echo command, build-in or alias
191+
# Assumes that the shell has an echo command, built-in or alias
191192
binpath = os.path.join(system.rez_bin_path, "rez-env")
192193
args = [binpath, "--shell", target_shell, "--", "echo", txt]
193194

@@ -196,8 +197,13 @@ def _test(txt):
196197
stderr=subprocess.PIPE, universal_newlines=True
197198
)
198199
sh_out = process.communicate()
200+
201+
# because powershell may not exit with !0 on error, depending on
202+
# how it's been configured
203+
#
199204
if sh_out[1]:
200205
raise Exception("Command %r failed:\n%s" % (txt, sh_out[1]))
206+
201207
self.assertEqual(sh_out[0].strip(), txt)
202208

203209
# please note - it's no coincidence that there are no substrings like

src/rez/utils/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
# Update this value to version up Rez. Do not place anything else in this file.
4-
_rez_version = "2.95.0"
4+
_rez_version = "2.95.1"
55

66

77
# Copyright 2013-2016 Allan Johns.

0 commit comments

Comments
 (0)