-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Simplify pandas fixture. #10178
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
Simplify pandas fixture. #10178
Conversation
lib/matplotlib/testing/conftest.py
Outdated
register() | ||
try: | ||
yield pd | ||
finally: | ||
try: | ||
from pandas.plotting import ( | ||
deregister_matplotlib_converters as deregister) | ||
request.addfinalizer(deregister) |
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.
Why aren't you just calling it?
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.
because it was a typo (as in, forgot to change that)
4c594eb
to
96da183
Compare
lib/matplotlib/testing/conftest.py
Outdated
@@ -80,22 +80,21 @@ def mpl_image_comparison_parameters(request, extension): | |||
|
|||
@pytest.fixture | |||
def pd(request): |
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.
do we still need to take in request
?
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.
nope...
96da183
to
4fa99e3
Compare
PR Summary
Followup to #10124.
PR Checklist