Skip to content

Commit

Permalink
Fix type error that was affecting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gshuflin committed Oct 8, 2019
1 parent 81579c8 commit be558b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/python/pants/backend/python/rules/python_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ def run_python_test(
TransitiveHydratedTargets, BuildFileAddresses((test_target.address,))
)
all_targets = transitive_hydrated_targets.closure
all_target_adaptors = tuple(t.adaptor for t in all_targets)

interpreter_constraints = PexInterpreterContraints.create_from_adaptors(
adaptors=tuple(all_targets),
adaptors=tuple(all_target_adaptors),
python_setup=python_setup
)

# Produce a pex containing pytest and all transitive 3rdparty requirements.
output_pytest_requirements_pex_filename = 'pytest-with-requirements.pex'
requirements = PexRequirements.create_from_adaptors(
adaptors=all_targets,
adaptors=all_target_adaptors,
additional_requirements=pytest.get_requirement_strings()
)

Expand Down

0 comments on commit be558b8

Please sign in to comment.