-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Deprecate raises(..., 'code(as_a_string)')
/ warns(..., 'code(as_a_string)')
.
#4443
Conversation
urgh and there's a circular import. great. |
@@ -325,7 +325,7 @@ def test_gen(): | |||
assert len(colitems) == 1 | |||
gencol = colitems[0] | |||
assert isinstance(gencol, pytest.Generator) | |||
pytest.raises(ValueError, "gencol.collect()") | |||
pytest.raises(ValueError, gencol.collect) |
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.
to highlight the importance of the call visually i'd propose a with statement in that case
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.
if it's ok, I'm going to leave these as is so it's a less noisy diff -- we can clean these up in a followup
Codecov Report
@@ Coverage Diff @@
## features #4443 +/- ##
=============================================
- Coverage 95.87% 42.42% -53.45%
=============================================
Files 111 92 -19
Lines 25222 20985 -4237
Branches 2474 2365 -109
=============================================
- Hits 24181 8903 -15278
- Misses 732 11480 +10748
- Partials 309 602 +293
Continue to review full report at Codecov.
|
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.
Nice, we just need to give the docs some love! 😁
I ran |
raises(..., 'code(as_a_string')
.raises(..., 'code(as_a_string)')
/ warns(..., 'code(as_a_string)')
.
@nicoddemus @RonnyPfannschmidt -- ready for another round of review :) |
Thanks @asottile! We just need to sort out the failure before we merge it. 👍 |
lol of course -- the test I just added 😆 |
Resolves #4435
TODONE: