diff --git a/lib/matplotlib/testing/__init__.py b/lib/matplotlib/testing/__init__.py index 9fcdb6aeee03..9de9785d2b5f 100644 --- a/lib/matplotlib/testing/__init__.py +++ b/lib/matplotlib/testing/__init__.py @@ -19,15 +19,8 @@ def set_font_settings_for_testing(): mpl.rcParams['font.family'] = 'DejaVu Sans' - # We've changed the default for ourselves here, but for backwards-compatibility, use - # the old setting if not called in our own tests (which would set - # `_called_from_pytest` from our `conftest.py`). - if getattr(mpl, '_called_from_pytest', False): - mpl.rcParams['text.hinting'] = 'default' - mpl.rcParams['text.hinting_factor'] = 1 - else: - mpl.rcParams['text.hinting'] = 'none' - mpl.rcParams['text.hinting_factor'] = 8 + mpl.rcParams['text.hinting'] = 'default' + mpl.rcParams['text.hinting_factor'] = 1 def set_reproducibility_for_testing():