-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Fix attrs redone #3058
Fix attrs redone #3058
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3058 +/- ##
=======================================
Coverage 99.63% 99.63%
=======================================
Files 120 121 +1
Lines 17832 17839 +7
Branches 3204 3206 +2
=======================================
+ Hits 17767 17774 +7
Misses 46 46
Partials 19 19
|
b0a261e
to
72c1c68
Compare
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.
Looks good, but to be honest kind of confused about the reasoning for test_endtoend
changes
The mypy annotate tool uses pickle so you don't want to use a cached version of trio otherwise it fails. (It gets the cached version of trio even though that was deleted from sys.modules because it's cached by the tool) |
Makes sense, thanks for explaining. In that case though, why is there another call to cached
|
Oh I missed that! I'm surprised that doesn't error. I assume it's cause it loads the object from pickle which uses the version of trio I just used rather than the one cached in the |
3e90307
to
72c1c68
Compare
Sorry about the review request, I tried something that seemed to work locally but it didn't work in CI (after I requested your review again). I probably just somehow set things up incorrectly. |
#3054 didn't catch everything. However the root cause was that pytest imports trio during plugin phase and doesn't handle deprecation warnings by erroring then.
To fix that, we can just clear the module cache and try importing again. I'm not completely sold on this idea but it's the best one I had and it works.