File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,13 +37,11 @@ def test_ttflist_weight():
3737
3838
3939def 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
4947def test_json_serialization ():
You can’t perform that action at this time.
0 commit comments