Skip to content

Commit

Permalink
Fix test_run_simple() test broken on Python 2 by virtualenv 20.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed Feb 28, 2020
1 parent 4a847a2 commit 8ffd6d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ jobs:
<<: *set_workdir
steps:
- *restore_repo_cache
- *install_tox
# Temporary virtualenv pin added due to https://github.com/pypa/virtualenv/issues/1670
#- *install_tox
- run: sudo pip install tox virtualenv==20.0.4
- run: tox -e py27-unit
py35_docstring:
docker:
Expand Down
5 changes: 2 additions & 3 deletions test/unit/jobs/test_expression_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ def test_run_simple():
if "PYTHONPATH" in new_env:
new_env['PYTHONPATH'] = "%s:%s" % (LIB_DIRECTORY, new_env["PYTHONPATH"])
else:
new_env['PYTHONPATH'] = "%s" % (LIB_DIRECTORY)
new_env['PYTHONPATH'] = LIB_DIRECTORY
new_env['GALAXY_EXPRESSION_INPUTS'] = environment_path
p = subprocess.Popen(
subprocess.check_call(
args=expressions.EXPRESSION_SCRIPT_CALL,
shell=True,
cwd=test_directory,
env=new_env,
)
assert p.wait() == 0
with open(os.path.join(test_directory, 'moo')) as f:
out_content = f.read()
assert out_content == '7', out_content
Expand Down

0 comments on commit 8ffd6d7

Please sign in to comment.