浏览代码

tests: Don't expect mypy to be on the system PATH

rdb 2 年之前
父节点
当前提交
4bdf85348f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/run_mypy.py

+ 2 - 0
tests/run_mypy.py

@@ -13,6 +13,8 @@ def main():
         direct_copy = pathlib.Path(temp_dir, 'direct')
         direct_copy = pathlib.Path(temp_dir, 'direct')
         shutil.copytree(direct_src, direct_copy)
         shutil.copytree(direct_src, direct_copy)
         command = [
         command = [
+            sys.executable,
+            '-m',
             'mypy',
             'mypy',
             str(direct_copy.resolve()),
             str(direct_copy.resolve()),
             '--config-file',
             '--config-file',