Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91075a3

Browse files
committed
Address a comment
1 parent 8a10efc commit 91075a3

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

lib/matplotlib/tests/test_font_manager.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,11 @@ def test_ttflist_weight():
3737

3838

3939
def test_score_weight():
40-
assert (0 ==
41-
fontManager.score_weight("regular", "regular") ==
42-
fontManager.score_weight("bold", "bold") <
43-
fontManager.score_weight(400, 400) ==
44-
# "normal" and "regular" have the same numerical weight
45-
fontManager.score_weight("normal", "regular") <
46-
fontManager.score_weight("normal", "bold"))
40+
assert 0 == fontManager.score_weight("regular", "regular")
41+
assert 0 == fontManager.score_weight("bold", "bold")
42+
assert 0 < fontManager.score_weight(400, 400) < fontManager.score_weight("normal", "bold")
43+
assert 0 < fontManager.score_weight("normal", "regular") < fontManager.score_weight("normal", "bold")
44+
assert fontManager.score_weight("normal", "regular") == fontManager.score_weight(400, 400)
4745

4846

4947
def test_json_serialization():

0 commit comments

Comments
 (0)