Skip to content

Odd output at end of running tests with pyside6 #1268

@nstelter-slac

Description

@nstelter-slac

Describe the bug

At the end of running the tests with pyside6 (python run_tests.py), there is a pause in terminal output and then it outputs:

QThread: Destroyed while thread '' is still running

Aborted (core dumped)

Investigate if this indicates any issues with threading or general cleanup.

Steps to reproduce

  1. create conda env with python 3.13 and pyside6:
  $ conda create -n pydm-environment-pyside python pip numpy scipy six psutil pyqtgraph pydm -c conda-forge
  $ source activate pydm-environment
  $ pip install PySide6 # or can install with conda in earlier cmd
  1. edit run_tests.py to not run "test_psp_plugin_component.py" and "test_plugins_import.py"
--- a/run_tests.py
+++ b/run_tests.py
@@ -23,6 +23,8 @@ if __name__ == "__main__":
         args.append("--ignore=pydm/tests/data_plugins/test_p4p_plugin_component.py")
         args.append("--ignore=pydm/tests/data_plugins/test_psp_plugin_component.py")
 
+    args.append("--ignore=pydm/tests/data_plugins/test_psp_plugin_component.py")
+    args.append("--ignore=pydm/tests/test_plugins_import.py")
     print("pytest arguments: {}".format(args))
 
     sys.exit(pytest.main(args))
  1. activate conda pyside6 env and export QT_API=pyside6

  2. run the tests with python run_tests.py and check the last output in the terminal.

Expected behavior

no output after test results (like with running with pyqt5)

Operating System.

Linux

OS Version Details.

Linux

Python Version

3.13.5

Packages Version

Image

Additional context.

Note: in my experience it seems like pyside6 prints errors/output for issues that pyqt5 might silently ignore.

So the lack of output from pyqt5 might not indicate it doesn't have the issue too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpyside6for adding pyside6 (qt6) support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions