-
-
Notifications
You must be signed in to change notification settings - Fork 292
More tests for imported modules #1399
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
More tests for imported modules #1399
Conversation
for more information, see https://pre-commit.ci
The way the tests are faillinbg is very weird and I'm unsure if it's linked to my changes. The following test fails:
I wonder if this is a side effect of calling |
Ugh, I think you're right the tests might not be independent and rely on the caching between tests. Do you have an idea how to fix the failing test ? |
I could restore the cache after the tests ? |
for more information, see https://pre-commit.ci
Looks like it doesn’t work :/ I must be missing something… |
I was just working with astroid's caching mechanism recently and remembered using @tristanlatr @Pierre-Sassoulas do you have thoughts about whether we should merge these tests? |
Pull Request Test Coverage Report for Build 2308678113
💛 - Coveralls |
Hello @jacobtylerwalls, Thanks a lot for your input here. If I understand correctly, AstroidCacheSetupMixin clear the cache between each test method, right ? If all tests passes, I would be happy that these test land in the main branch. |
Not between each test method but at the beginning and end of the class. (The reason your test was failing was the same thing I saw and fixed in #1528.) Do we need to clear the cache with every test method? If so we can adjust the behavior of the mixin to use The failure on 3.11 is unrelated and tracked in #1551 |
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 think we can merge this; if we want to increase the test isolation to clear caches every test method, we can do that in another PR anyway.
Type of Changes
This PR adds more tests, see #1398
Related Issue
Resolves #1398