Skip to content

Commit

Permalink
Fix e2e test for py ver < 3.3
Browse files Browse the repository at this point in the history
Signed-off-by: javrin <jawabiscuit@users.noreply.github.com>
  • Loading branch information
Jawabiscuit committed Aug 27, 2023
1 parent 995d7b6 commit c8ee458
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rez/tests/test_e2e_shells.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from __future__ import print_function
import json
import os
import sys
from fnmatch import fnmatch
from textwrap import dedent

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

# Popen args added in v3.3
if sys.version_info < (3, 3):
return

lines = []
script_arg = next(iter(arg for arg in p.args if "rez-shell" in arg))
exec_script = next(iter(arg for arg in script_arg.split() if "rez-shell" in arg))
Expand Down

0 comments on commit c8ee458

Please sign in to comment.