-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add a mypy self test #4337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a mypy self test #4337
Conversation
shutil.copytree('stdlib', str(dirpath / 'mypy/mypy/typeshed/stdlib')) | ||
shutil.copytree('third_party', str(dirpath / 'mypy/mypy/typeshed/third_party')) | ||
try: | ||
subprocess.run(['pytest', '-n12'], cwd=str(dirpath / 'mypy'), check=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this should be -n auto
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved this file from the old mypy_selftest.py
. I'd consider changes to it out of scope of this PR.
tests/mypy_selftest.py
Outdated
try: | ||
subprocess.run(['pytest', '-n12'], cwd=str(dirpath / 'mypy'), check=True) | ||
subprocess.run([sys.executable, "-m", "pip", "install", f"mypy=={MYPY_VERSION}"], check=True) | ||
subprocess.run(["mypy", "--custom-typeshed-dir", ".", dirpath / "mypy", dirpath / "mypyc"], check=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't pass for me against mypy master (after removing --custom-typeshed-dir
). The command mypy uses is mypy --config-file mypy_self_check.ini -p mypy -p mypyc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try this config file.
Still failing. We'd need to investigate further if we decide that this is a viable way to go forward. |
Rename mypy_selftest to mypy_test_suite
3d47672
to
933d4fd
Compare
d873048
to
e62e357
Compare
e62e357
to
7c7d145
Compare
Rename mypy_selftest to mypy_test_suite
Cf. #4333