This commit is contained in:
Waylon Walker 2022-03-31 20:20:07 -05:00
commit 38355d2442
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
9083 changed files with 1225834 additions and 0 deletions

View file

@ -0,0 +1,19 @@
import sys
import os
import unittest
from pygame.tests import font_test
import pygame.ftfont
font_test.pygame_font = pygame.ftfont
# Disable UCS-4 specific tests as this "Font" type does accept UCS-4 codes.
font_test.UCS_4 = False
for name in dir(font_test):
obj = getattr(font_test, name)
if isinstance(obj, type) and issubclass(obj, unittest.TestCase): # conditional and
new_name = "Ft%s" % name
globals()[new_name] = type(new_name, (obj,), {})
if __name__ == "__main__":
unittest.main()