Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2465

Shiboken test failures

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.2.9, 5.15.15, 6.6.0, 6.5.3
    • 6.5.2, 5.15.10, 6.6.0
    • Shiboken
    • None
    • Linux/X11
    • e726ec645 (dev), 59b2ebea6 (6.6), c7df6c4ac (6.5), 7adb08691 (tqtc/lts-6.2), 210a3e942 (tqtc/lts-5.15)

    Description

      New tests failures in Shiboken 6.5.2 were observed on openSUSE a couple days ago.

      We suppose the python update to 3.11.5 may trigger it:

       

      [ 183s] 149 - sample_privatector (Failed)
      [ 183s] 150 - sample_privatedtor (Failed)

       

      # python3 setup.py build --build-type=shiboken6 --build-tests
      [INFO]: running build
      [INFO]: ==============================
      [INFO]: Package version: 6.6.0a1
      [INFO]: Build type:  Release
      [INFO]: Build tests: 1
      [INFO]: ---
      [INFO]: Make path:      /usr/bin/ninja
      [INFO]: Make generator: Ninja
      [INFO]: Make jobs:      
      [INFO]: ---
      [INFO]: setup.py directory:      /data/qt/pyside-setup
      [INFO]: Build scripts directory: /data/qt/pyside-setup/build_scripts
      [INFO]: Sources directory:       /data/qt/pyside-setup/sources
      [INFO]: 
      Building shiboken6 will create and touch directories
        in the following order:
          make build directory ->
          make install directory ->
          setuptools build directory ->
          setuptools install directory
            (usually path-installed-python/lib/python*/site-packages/*)
      [INFO]: make build directory:         /data/qt/pyside-setup/build/qfp-py3.11-qt6.5.2-64bit-release/build
      [INFO]: make install directory:       /data/qt/pyside-setup/build/qfp-py3.11-qt6.5.2-64bit-release/install
      [INFO]: setuptools build directory:   /data/qt/pyside-setup/build/qfp-py3.11-qt6.5.2-64bit-release/package
      [INFO]: setuptools install directory: /usr/lib/python3.11/site-packages
      [INFO]: 
      make-installed site-packages directory: /data/qt/pyside-setup/build/qfp-py3.11-qt6.5.2-64bit-release/install/lib/python3.11/site-packages
       (only relevant for copying files from 'make install directory'
                                        to   'setuptools build directory'
      [INFO]: ---
      [INFO]: Python executable: /usr/bin/python3
      [INFO]: Python includes:   /usr/include/python3.11
      [INFO]: Python library:    /usr/lib64/libpython3.11.so
      [INFO]: Python prefix:     /usr
      [INFO]: Python scripts:    /usr/bin
      [INFO]: Python arch:       64
      [INFO]: ---
      [INFO]: Qt prefix:  /usr
      [INFO]: Qt qmake:   None
      [INFO]: Qt qtpaths: /usr/lib64/qt6/bin/qtpaths
      [INFO]: Qt version: 6.5.2
      [INFO]: Qt bins:    /usr/lib64/qt6/bin
      [INFO]: Qt docs:    /usr/share/doc/qt6
      [INFO]: Qt plugins: /usr/lib64/qt6/plugins
      

       

      Both tests fail with the same errors:

      RUN 1: 149/189 Test #149: sample_privatector .................................................***Failed    0.10 sec
      RUN 1: E.E.
      RUN 1: ======================================================================
      RUN 1: ERROR: testPrivateCtorInheritance (__main__.PrivateCtorTest.testPrivateCtorInheritance)
      RUN 1: Test if inheriting from PrivateCtor raises an exception.
      RUN 1: ----------------------------------------------------------------------
      RUN 1: Traceback (most recent call last):
      RUN 1:   File "/data/qt/pyside-setup/sources/shiboken6/tests/samplebinding/privatector_test.py", line 37, in testPrivateCtorInheritance
      RUN 1:     self.assertRaises(TypeError, inherit)
      RUN 1:   File "/data/qt/pyside-setup/sources/shiboken6/tests/samplebinding/privatector_test.py", line 26, in assertRaises
      RUN 1:     return super().assertRaises(*args, **kwds)
      RUN 1:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      RUN 1:   File "/usr/lib64/python3.11/unittest/case.py", line 766, in assertRaises
      RUN 1:     return context.handle('assertRaises', args, kwargs)
      RUN 1:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      RUN 1:   File "/usr/lib64/python3.11/unittest/case.py", line 237, in handle
      RUN 1:     callable_obj(*args, **kwargs)
      RUN 1:   File "/data/qt/pyside-setup/sources/shiboken6/tests/samplebinding/privatector_test.py", line 35, in inherit
      RUN 1:     class Foo(PrivateCtor):
      RUN 1: ValueError: PyUnicode_FromFormatV() expects an ASCII-encoded format string, got a non-ASCII byte: 0xc2

       

      Attachments

        For Gerrit Dashboard: PYSIDE-2465
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            cgiboudeaux Christophe Marin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: