Skip to content

Instantly share code, notes, and snippets.

@ntoll
Created July 16, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntoll/70b9a5a3e9c3f8555e825406bcc4410c to your computer and use it in GitHub Desktop.
Save ntoll/70b9a5a3e9c3f8555e825406bcc4410c to your computer and use it in GitHub Desktop.
$ python -m pygame.tests
pygame 1.9.4.dev0
Hello from the pygame community. https://www.pygame.org/contribute.html
skipping pygame.tests.cdrom_test (tag 'interactive')
skipping pygame.tests.midi_test (tag 'interactive')
skipping pygame.tests.scrap_test (tag 'subprocess_ignore')
skipping pygame.tests.sndarray_test (tag 'subprocess_ignore')
skipping pygame.tests.surfarray_test (tag 'subprocess_ignore')
loading pygame.tests.base_test
loading pygame.tests.blit_test
loading pygame.tests.bufferproxy_test
loading pygame.tests.camera_test
loading pygame.tests.color_test
loading pygame.tests.compat_test
loading pygame.tests.cursors_test
loading pygame.tests.display_test
loading pygame.tests.draw_test
loading pygame.tests.event_test
loading pygame.tests.fastevent_test
loading pygame.tests.font_test
loading pygame.tests.freetype_test
loading pygame.tests.ftfont_test
loading pygame.tests.gfxdraw_test
loading pygame.tests.image__save_gl_surface_test
loading pygame.tests.image_test
loading pygame.tests.imageext_test
loading pygame.tests.joystick_test
loading pygame.tests.key_test
loading pygame.tests.mask_test
loading pygame.tests.math_test
loading pygame.tests.mixer_music_test
loading pygame.tests.mixer_test
loading pygame.tests.mouse_test
loading pygame.tests.overlay_test
loading pygame.tests.pixelarray_test
loading pygame.tests.pixelcopy_test
loading pygame.tests.rect_test
loading pygame.tests.rwobject_test
loading pygame.tests.sprite_test
loading pygame.tests.surface_test
loading pygame.tests.surflock_test
loading pygame.tests.sysfont_test
loading pygame.tests.threads_test
loading pygame.tests.time_test
loading pygame.tests.transform_test
...................................................................................................................................F...EEEE........................................................F...EEEE.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_match_font_all_exist (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 116, in test_match_font_all_exist
path = pygame_font.match_font(font)
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/sysfont.py", line 353, in match_font
for name in allnames.split(','):
AttributeError: 'NoneType' object has no attribute 'split'
======================================================================
ERROR: test_match_font_bold (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 126, in test_match_font_bold
if pygame_font.match_font(font, bold=True) is not None:
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/sysfont.py", line 353, in match_font
for name in allnames.split(','):
AttributeError: 'NoneType' object has no attribute 'split'
======================================================================
ERROR: test_match_font_comma_separated (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 151, in test_match_font_comma_separated
names = ','.join(['thisisnotafont', fonts[-1], 'anothernonfont'])
TypeError: sequence item 1: expected str instance, NoneType found
======================================================================
ERROR: test_match_font_italic (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 137, in test_match_font_italic
if pygame_font.match_font(font, italic=True) is not None:
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/sysfont.py", line 353, in match_font
for name in allnames.split(','):
AttributeError: 'NoneType' object has no attribute 'split'
======================================================================
FAIL: test_get_fonts (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 98, in test_get_fonts
self.failUnless(isinstance(name, name_types), name)
AssertionError: False is not true
======================================================================
ERROR: test_match_font_all_exist (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 116, in test_match_font_all_exist
path = pygame_font.match_font(font)
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/sysfont.py", line 353, in match_font
for name in allnames.split(','):
AttributeError: 'NoneType' object has no attribute 'split'
======================================================================
ERROR: test_match_font_bold (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 126, in test_match_font_bold
if pygame_font.match_font(font, bold=True) is not None:
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/sysfont.py", line 353, in match_font
for name in allnames.split(','):
AttributeError: 'NoneType' object has no attribute 'split'
======================================================================
ERROR: test_match_font_comma_separated (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 151, in test_match_font_comma_separated
names = ','.join(['thisisnotafont', fonts[-1], 'anothernonfont'])
TypeError: sequence item 1: expected str instance, NoneType found
======================================================================
ERROR: test_match_font_italic (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 137, in test_match_font_italic
if pygame_font.match_font(font, italic=True) is not None:
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/sysfont.py", line 353, in match_font
for name in allnames.split(','):
AttributeError: 'NoneType' object has no attribute 'split'
======================================================================
FAIL: test_get_fonts (pygame.tests.font_test.FontModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ntoll/.pyenv/versions/3.7.0b2/lib/python3.7/site-packages/pygame/tests/font_test.py", line 98, in test_get_fonts
self.failUnless(isinstance(name, name_types), name)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 712 tests in 18.403s
FAILED (failures=2, errors=8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment