Skip to content

Commit ab9a8b3

Browse files
committed
Cleanup from removing tuffy.copy.ttf
1 parent 209095d commit ab9a8b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/copying.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ License
3333

3434
Some files are **not** covered by the license above.
3535

36-
* For ``examples/resources/tuffy.ttf``,
37-
``examples/resources/tuffy.copy.ttf`` and
36+
* For ``examples/resources/tuffy.ttf`` and
3837
``sdl2/test/resources/tuffy.ttf`` the following terms apply:
3938

4039
::

sdl2/test/sdl2ext_font_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,13 @@ def test_init(self):
493493
assert fm.bg_color == sdl2ext.Color(100, 0, 0, 0)
494494

495495
def test_default_font(self):
496-
fm = sdl2ext.FontManager(RESOURCES.get_path("tuffy.ttf"))
496+
fontpath = RESOURCES.get_path("tuffy.ttf")
497+
fm = sdl2ext.FontManager(fontpath)
497498
assert fm.default_font == "tuffy"
498499
assert fm.size == 16
499500
with pytest.raises(ValueError):
500501
fm.default_font = "Inexistent Alias"
501-
fm.add(RESOURCES.get_path("tuffy.copy.ttf"), size = 10)
502+
fm.add(fontpath, alias = "tuffy.copy", size = 10)
502503
fm.default_font = "tuffy.copy"
503504
fm.size = 10
504505
assert fm.default_font == "tuffy.copy"

0 commit comments

Comments
 (0)