Skip to content

Commit d5fd9d8

Browse files
refactor out the common args of self and selfc
1 parent f6b990a commit d5fd9d8

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

runtests.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,17 @@
4848
# These mypyc test filters cover most slow test cases
4949
MYPYC_SLOW = [MYPYC_RUN_MULTI, MYPYC_COMMAND_LINE, MYPYC_SEPARATE, MYPYC_MULTIMODULE]
5050

51+
self_args = ["--config-file", "mypy_self_check.ini", "-p", "mypy", "-p", "mypyc"]
5152

5253
# We split the pytest run into three parts to improve test
5354
# parallelization. Each run should have tests that each take a roughly similar
5455
# time to run.
5556
cmds = {
5657
# Self type check
57-
"self": [
58-
executable,
59-
"-m",
60-
"mypy",
61-
"--config-file",
62-
"mypy_self_check.ini",
63-
"-p",
64-
"mypy",
65-
"-p",
66-
"mypyc",
67-
],
58+
"self": [executable, "-m", "mypy"] + self_args,
6859
# Self type check, but use mypyc;
6960
# for instance, to catch nasty mypyc bugs.
70-
"selfc": ["mypyc", "--config-file", "mypy_self_check.ini", "-p", "mypy", "-p", "mypyc"],
61+
"selfc": ["mypyc"] + self_args,
7162
# Type check setup.py as well
7263
"self-packaging": [
7364
executable,

0 commit comments

Comments
 (0)