Public bug reported:

After fixing bug 1937058 it still is blocked as on s390x there are further 
fails around code that already tries to handle byteorder but seems to fail on 
big endian.
Example test log:
https://autopkgtest.ubuntu.com/results/autopkgtest-impish/impish/s390x/p/pyspread/20210721_122643_4cbff@/log.gz


pyspread/test/test_workflows.py ...............                          [100%]

=================================== FAILURES ===================================
__________________________________ test_RGB32 __________________________________

    def test_RGB32():
        qimg = QtGui.QImage(320, 240, QtGui.QImage.Format_RGB32)
        qimg.fill(0)
        v = _qimageview(qimg)
        qimg.fill(23)
        qimg.setPixel(12, 10, QtGui.qRgb(0x12, 0x34, 0x56))
        assert_equal(v.shape, (240, 320))
        assert_equal(v[10, 10], 23 | 0xff000000)
>       assert_equal(v[10, 12], 0xff123456
                     if sys.byteorder == 'little' else 0x563412ff)

pyspread/lib/test/test_qimageview.py:145: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

a = 4279383126, b = 1446253311

    def assert_equal(a, b):
>       assert a == b
E       assert 4279383126 == 1446253311

pyspread/lib/test/test_qimageview.py:72: AssertionError
_________________________________ test_ARGB32 __________________________________

    def test_ARGB32():
        qimg = QtGui.QImage(320, 240, QtGui.QImage.Format_ARGB32)
        qimg.fill(0)
        v = _qimageview(qimg)
        qimg.setPixel(12, 10, QtGui.qRgb(0x12, 0x34, 0x56))
        assert_equal(v.shape, (240, 320))
>       assert_equal(v[10, 12], 0xff123456
                     if sys.byteorder == 'little' else 0x563412ff)

pyspread/lib/test/test_qimageview.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

a = 4279383126, b = 1446253311

    def assert_equal(a, b):
>       assert a == b
E       assert 4279383126 == 1446253311

** Affects: pyspread (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

** Tags added: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1937162

Title:
  1.99.6 tests fail on s390x - byteorder

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyspread/+bug/1937162/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to