-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Move test_stubs and test_samples to pytest #5142
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
Conversation
Hm, we will have to be careful with this and #5051. I think it should be fine for me to rebase my PR on this. |
run_mypy(mypy_args + [f]) | ||
|
||
|
||
def find_files(base: str, prefix: str = '', suffix: str = '') -> List[str]: |
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.
Perhaps these should be moved to mypy.test.helpers
since they are used outside of this file?
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 don't think so. It's a temporary hack in runtests.py
, and should be moved here soon.
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.
Ah, that is true. I think this okay then.
Any reason not to merge this now? |
I haven't had the time to review it. If you trust Ethan and/or you've reviewed (and preferably tested) it yourself, go right ahead! |
@elazarg It seems there is a merge conflict. When you fix the merge conflict please also delete 3.3 from the list of tested typeshed directories. |
@ethanhs done (I've also removed 3.4) |
modules = [] | ||
# TODO: This should also test Python 2, and pass pyversion accordingly. | ||
for version in ["2and3", "3", "3.5"]: | ||
# FIX: remove 'builtins', this directory does not exist |
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.
What does "FIX:" mean? Is it a TODO? Why not do it now?
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 guess you are right. I think I didn't want to change anything
Using the api, similarly to #5087.
stdlibsamples
is not included in this PR since it requires special handling of working directory and paths.This is another item for #1673.