Skip to content

Commit c8ee458

Browse files
committed
Fix e2e test for py ver < 3.3
Signed-off-by: javrin <[email protected]>
1 parent 995d7b6 commit c8ee458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rez/tests/test_e2e_shells.py

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from __future__ import print_function
99
import json
1010
import os
11+
import sys
1112
from fnmatch import fnmatch
1213
from textwrap import dedent
1314

@@ -204,6 +205,10 @@ def test_shell_invoking_script(self, shell):
204205
self.assertEqual(p.returncode, 0)
205206
assert stderr is None
206207

208+
# Popen args added in v3.3
209+
if sys.version_info < (3, 3):
210+
return
211+
207212
lines = []
208213
script_arg = next(iter(arg for arg in p.args if "rez-shell" in arg))
209214
exec_script = next(iter(arg for arg in script_arg.split() if "rez-shell" in arg))

0 commit comments

Comments
 (0)