Skip to content

Commit 2b25e40

Browse files
[MLGO] Switch test to invoke pytype through python
Currently this test is assuming that ~/.local/bin (or wherever the Python binaries are installed to) is on the path. This is not a valid assumption in most cases, and it also means we might not find the version of pytype associated with the Python interpreter being used to test LLVM, which could create some inconsistencies. This patch fixes that by invoking pytype through the Python interpreter passed to lit.
1 parent 07a1925 commit 2b25e40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# REQUIRES: system-linux, has-pytype
22

3-
# RUN: pytype %S/../mlgo
4-
# RUN: pytype %S/../tests
3+
# RUN: %python -m pytype %S/../mlgo
4+
# RUN: %python -m pytype %S/../tests

0 commit comments

Comments
 (0)