-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
gh-108303: Move all inspect test files to test_inspect/
#109607
Conversation
Looks like there's one more hidden dependency: in |
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.
Can you please try with a first PR to move ready_to_import() to test.support?
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.
LGTM.
|
||
|
||
def load_tests(*args): | ||
return support.load_package_tests(os.path.dirname(__file__), *args) |
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.
@serhiy-storchaka: It would be nice if we could magically generate such function, instead of having to duplicate the same 4 lines in each test_xxx/ test package. Do you think that it would be possible?
This change is LGTM, but I would to wait until #109626 is backported to 3.11. If the backport queue is too big, it becomes really complicated to handle it :-( |
I've solved conflicts, it should be now good to go, since all backports are done. |
Before:
After:
Same number of tests: good. And tests pass :-) |
Sorry, @sobolevn and @vstinner, I could not cleanly backport this to
|
Sorry, @sobolevn and @vstinner, I could not cleanly backport this to
|
@sobolevn: Thanks. I merged your PR. But the thing couldn't be backported automatically. Can you please try to backport the change manually to 3.12? |
|
Working on it. |
|
pythonGH-109607) (cherry picked from commit 732532b) Co-authored-by: Nikita Sobolev <[email protected]>
GH-110732 is a backport of this pull request to the 3.12 branch. |
GH-111543 is a backport of this pull request to the 3.11 branch. |
This PR also moves
ready_to_import
helper totest/support/import_helper
, becausetest_inspect
was importingtest_import
, which is not good at all.