Skip to content

Commit

Permalink
Try setting MYPYPATH explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed May 22, 2018
1 parent 9b808b9 commit cb3d6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whole-repo-tests/test_type_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def test_mypy_passes_on_hypothesis():

def get_mypy_analysed_type(fname, val):
out = subprocess.Popen(
[tool_path('mypy'), fname],
['MYPYPATH="{}"'.format(tools.PYTHON_SRC), tool_path('mypy'), fname],
stdout=subprocess.PIPE, encoding='utf-8', universal_newlines=True,
).stdout.read()
assert len(out.splitlines()) == 1
Expand Down

0 comments on commit cb3d6c2

Please sign in to comment.