1diff --git a/tests/test_command.py b/tests/test_command.py
2index a0833c1..67c2110 100644
3--- a/tests/test_command.py
4+++ b/tests/test_command.py
5@@ -191,7 +191,7 @@ def test_not_on_path(tmpdir):
6 witness_src = "#!{}\n{}\n".format(sys.executable, 'print("WITNESS ME")')
7 write_executable(witness, witness_src)
8
9- env = {"PATH": ""}
10+ env = {"PATH": "", "PYTHONPATH": os.environ["PYTHONPATH"]}
11 if "SYSTEMROOT" in os.environ: # Windows http://bugs.python.org/issue20614
12 env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
13 if sys.platform == "win32":
14@@ -216,7 +216,7 @@ def test_path_priority(tmpdir):
15 witness_b_src = "#!{}\n{}\n".format(sys.executable, 'print("WITNESS B")')
16 write_executable(witness_b, witness_b_src)
17
18- env = {"PATH": str(b)}
19+ env = {"PATH": str(b), "PYTHONPATH": os.environ["PYTHONPATH"]}
20 if "SYSTEMROOT" in os.environ: # Windows http://bugs.python.org/issue20614
21 env["SYSTEMROOT"] = os.environ["SYSTEMROOT"]
22 if sys.platform == "win32":