Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 14b5d17

Browse filesBrowse files
committed
TST: Use same default style in the pytest fixture.
1 parent 1c0b96c commit 14b5d17
Copy full SHA for 14b5d17

File tree

Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed

‎lib/matplotlib/testing/conftest.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/conftest.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def mpl_test_settings(request):
3131
backend = backend_marker.args[0]
3232
prev_backend = matplotlib.get_backend()
3333

34-
style = 'classic'
34+
style = '_classic_test' # Default of cleanup and image_comparison too.
3535
style_marker = request.keywords.get('style')
3636
if style_marker is not None:
3737
assert len(style_marker.args) == 1, \

‎lib/matplotlib/testing/decorators.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/decorators.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def wrapped_callable(*args, **kwargs):
150150
return make_cleanup
151151
else:
152152
result = make_cleanup(style)
153+
# Default of mpl_test_settings fixture and image_comparison too.
153154
style = '_classic_test'
154155
return result
155156

@@ -362,7 +363,9 @@ def runner_wrapper():
362363

363364
def image_comparison(baseline_images=None, extensions=None, tol=0,
364365
freetype_version=None, remove_text=False,
365-
savefig_kwarg=None, style='_classic_test'):
366+
savefig_kwarg=None,
367+
# Default of mpl_test_settings fixture and cleanup too.
368+
style='_classic_test'):
366369
"""
367370
Compare images generated by the test with those specified in
368371
*baseline_images*, which must correspond else an

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.