[Python-modules-team] Bug#943613: pygame doesn't find tests when run with python3.8

Matthias Klose doko at debian.org
Sun Oct 27 10:54:46 GMT 2019


Package: src:pygame
Version: 1.9.4.post1+dfsg-3
Severity: important
Tags: sid bullseye
User: debian-python at lists.debian.org
Usertags: python3.8

pygame doesn't find tests when run with python3.8 (having multiple supported 
Python3 versions).

return (first 10 and last 10 lines):
/usr/lib/python3.8/runpy.py:125: RuntimeWarning: 
'pygame.tests.test_utils.test_runner' found in sys.modules after import of 
package 'pygame.tests.test_utils', but prior to execution of 
'pygame.tests.test_utils.test_runner'; this may result in unpredictable behaviour
   warn(RuntimeWarning(msg))
Traceback (most recent call last):
   File "/usr/lib/python3.8/unittest/loader.py", line 169, in loadTestsFromName
     parent, obj = obj, getattr(obj, part)
AttributeError: module 'pygame.tests' has no attribute 'math_test'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
...
   File 
"/<<BUILDDIR>>/pygame-1.9.4.post1+dfsg/.pybuild/cpython3_3.8_pygame/build/pygame/tests/test_utils/test_runner.py", 
line 224, in <module>
     run_test(args[0],
   File 
"/<<BUILDDIR>>/pygame-1.9.4.post1+dfsg/.pybuild/cpython3_3.8_pygame/build/pygame/tests/test_utils/test_runner.py", 
line 193, in run_test
     suite.addTest(loader.loadTestsFromName(module))
   File "/usr/lib/python3.8/unittest/loader.py", line 179, in loadTestsFromName
     self.errors.append(error_message)
AttributeError: 'PygameTestLoader' object has no attribute 'errors'
pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
loading pygame.tests.math_test

----------------------------------------------------------------------
Ran 604 tests in 27.964s

FAILED (errors=1)
/<<BUILDDIR>>/pygame-1.9.4.post1+dfsg/.pybuild/cpython3_3.8_pygame/build/pygame/tests/test_utils/__init__.py:158: 
SyntaxWarning: "is not" with a literal. Did you mean "!="?
   (rect.left is not 0 and [(rect.left-1, rect.top)] or []) +

E: pybuild pybuild:341: test: plugin custom failed with: exit code=1: 
/usr/bin/xvfb-run python3.8 -m pygame.tests.__main__ --exclude opengl

the complete log can be found at
https://launchpad.net/ubuntu/+source/pygame/1.9.4.post1+dfsg-3build1/+build/17940437



More information about the Python-modules-team mailing list