Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753026 - 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)
Summary: dev-python/pygame-1.9.6-r1 - fails test_aapolygon (pygame.tests.gfxdraw_test....
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2020-11-04 00:07 UTC by ernsteiswuerfel
Modified: 2021-04-28 13:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_753026.txt,6.08 KB, text/plain)
2020-11-04 00:07 UTC, ernsteiswuerfel
Details
build.log (pygame-1.9.6-r1:20201103-224506.log,194.65 KB, text/plain)
2020-11-04 00:08 UTC, ernsteiswuerfel
Details
build.log (2.0.0_pre10, ppc) (pygame-2.0.0_pre10:20201105-013759.log,223.40 KB, text/plain)
2020-11-05 01:58 UTC, ernsteiswuerfel
Details
build.log (2.0.0, ppc) (pygame-2.0.0:20201105-014050.log,236.24 KB, text/plain)
2020-11-05 01:58 UTC, ernsteiswuerfel
Details
build.log (1.9.6-r1, ppc64) (pygame-1.9.6-r1:20210428-130141.log,202.65 KB, text/plain)
2021-04-28 13:07 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
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.