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

Handle warnings correctly in all cases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 5.15.3, dev, 6.0.4
    • Fix Version/s: None
    • Component/s: Shiboken
    • Labels:
      None

      Description

      It has been a long-standing omission to ensure correct error handling for warnings.
      A widely unknown feature of Python is the ability to turn any warning into
      a real exception. This can be triggered by passing the -Werror flag on Python startup
      or the environment variable PYTHONWARNINGS=error.

      The needed action is

      • Make the current Shiboken::warning function correctly ignore errors,
      • Write a better function that handles warnings in a conforming way,
      • Rewrite places with warning usage to be aware of exceptions.

        Attachments

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

          Activity

            People

            Assignee:
            ctismer Christian Tismer
            Reporter:
            ctismer Christian Tismer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes