Skip to content

Commit c8c18e4

Browse files
authored
Merge pull request matplotlib#31841 from meeseeksmachine/auto-backport-of-pr-31825-on-v3.11.x
Backport PR matplotlib#31825 on branch v3.11.x (Partially revert "Fix test_RcParams_class on Python 3.15")
2 parents 9394ea7 + 21268c6 commit c8c18e4

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

lib/matplotlib/tests/test_rcparams.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,12 @@ def test_RcParams_class():
7979
'font.size': 12})
8080

8181
expected_repr = """
82-
RcParams({
83-
'font.cursive': ['Zapf Chancery', 'cursive'],
82+
RcParams({'font.cursive': ['Zapf Chancery', 'cursive'],
8483
'font.family': ['sans-serif'],
8584
'font.size': 12.0,
86-
'font.weight': 'normal',
87-
})""".lstrip()
85+
'font.weight': 'normal'})""".lstrip()
8886

8987
actual_repr = repr(rc)
90-
if sys.version_info[:2] < (3, 15):
91-
actual_repr = (actual_repr
92-
.replace("{'", "{\n '")
93-
.replace("'}", "',\n }"))
94-
9588
assert actual_repr == expected_repr
9689

9790
expected_str = """

0 commit comments

Comments
 (0)