Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 753026

Summary: dev-python/pygame-1.9.6-r1 - fails test_aapolygon (pygame.tests.gfxdraw_test.GfxdrawDefaultTest), test_from_surface__different_alphas_32bit (pygame.tests.mask_test.MaskModuleTest)
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: CONFIRMED ---    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
build.log (2.0.0_pre10, ppc)
build.log (2.0.0, ppc)
build.log (1.9.6-r1, ppc64)

Description ernsteiswuerfel archtester 2020-11-04 00:07:35 UTC
Created attachment 669968 [details]
emerge --info

[...]
FAIL: test_aapolygon (pygame.tests.gfxdraw_test.GfxdrawDefaultTest)
aapolygon(surface, points, color): return None
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pygame-1.9.6-r1/work/pygame-1.9.6-python3_7/test/lib/pygame-1.9.6-py
3.7-linux-ppc64.egg/pygame/tests/gfxdraw_test.py", line 672, in test_aapolygon
    self.check_at(surf, posn, fg_adjusted)
  File "/var/tmp/portage/dev-python/pygame-1.9.6-r1/work/pygame-1.9.6-python3_7/test/lib/pygame-1.9.6-py3.7-linux-ppc64.egg/pygame/tests/gfxdraw_test.py", line 49, in check_at
    self.assertEqual(sc, color, fail_msg)
AssertionError: (8, 64, 128, 255) != (128, 64, 8, 255) : (8, 64, 128, 255) != (128, 64, 8, 255) at (10, 15), bitsize: 24, flags: 0, masks: (255, 65280, 16711680, 0)

======================================================================
FAIL: test_from_surface__different_alphas_32bit (pygame.tests.mask_test.MaskModuleTest)
Ensures from_surface creates a mask with the correct bits set
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pygame-1.9.6-r1/work/pygame-1.9.6-python3_7/test/lib/pygame-1.9.6-py3.7-linux-ppc64.egg/pygame/tests/mask_test.py", line 1890, in test_from_surface__different_alphas_32bit
    self.assertEqual(mask.count(), expected_count, msg)
AssertionError: 255 != 223 : threshold=0

----------------------------------------------------------------------
Ran 954 tests in 14.736s

FAILED (failures=2)
Comment 1 ernsteiswuerfel archtester 2020-11-04 00:08:33 UTC
Created attachment 669971 [details]
build.log
Comment 2 ernsteiswuerfel archtester 2020-11-05 01:58:03 UTC
Created attachment 670055 [details]
build.log (2.0.0_pre10, ppc)

2.0.0_pre10 fails 3 tests. (i old one, 2 new ones):

[...]
======================================================================
FAIL: test_aapolygon (pygame.tests.gfxdraw_test.GfxdrawDefaultTest)
aapolygon(surface, points, color): return None
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pygame-2.0.0_pre10/work/pygame-2.0.0.dev10-python3_7/test/lib/pygame-2.0.0.dev10-py3.7-linux-ppc64.egg/pygame/tests/gfxdraw_test.py", line 723, in test_aapolygon
    self.check_at(surf, posn, fg_adjusted)
  File "/var/tmp/portage/dev-python/pygame-2.0.0_pre10/work/pygame-2.0.0.dev10-python3_7/test/lib/pygame-2.0.0.dev10-py3.7-linux-ppc64.egg/pygame/tests/gfxdraw_test.py", line 57, in check_at
    self.assertEqual(sc, color, fail_msg)
AssertionError: (8, 64, 128, 255) != (128, 64, 8, 255) : (8, 64, 128, 255) != (128, 64, 8, 255) at (10, 15), bitsize: 24, flags: 0, masks: (255, 65280, 16711680, 0)

======================================================================
FAIL: test_frombuffer_BGR (pygame.tests.image_test.ImageModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pygame-2.0.0_pre10/work/pygame-2.0.0.dev10-python3_7/test/lib/pygame-2.0.0.dev10-py3.7-linux-ppc64.egg/pygame/tests/image_test.py", line 608, in test_frombuffer_BGR
    self.assertEqual(bgr_surf.get_at((0, 0)), pygame.Color(255, 10, 20))
AssertionError: (20, 10, 255, 255) != (255, 10, 20, 255)

======================================================================
FAIL: test_frombuffer_RGB (pygame.tests.image_test.ImageModuleTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pygame-2.0.0_pre10/work/pygame-2.0.0.dev10-python3_7/test/lib/pygame-2.0.0.dev10-py3.7-linux-ppc64.egg/pygame/tests/image_test.py", line 581, in test_frombuffer_RGB
    self.assertEqual(rgb_surf.get_at((0, 0)), pygame.Color(255, 10, 20))
AssertionError: (20, 10, 255, 255) != (255, 10, 20, 255)

----------------------------------------------------------------------
Ran 1489 tests in 29.770s

FAILED (failures=3)
Comment 3 ernsteiswuerfel archtester 2020-11-05 01:58:58 UTC
Created attachment 670058 [details]
build.log (2.0.0, ppc)

2.0.0 claims to fail 3 tests but build.log shows a lot more failing.
Comment 4 Rolf Eike Beer archtester 2021-01-16 23:38:35 UTC
Same on sparc. Given the test output this is "just" an endianess error, at least the aapolygon one.
Comment 5 ernsteiswuerfel archtester 2021-04-28 13:07:17 UTC
Created attachment 703212 [details]
build.log (1.9.6-r1, ppc64)

Same 2 testfailures on ppc64.