migrate pyqt5 to pyside6
This commit is contained in:
@@ -464,6 +464,8 @@ def test_the_contract_layer_imports_without_qt_or_opengl():
|
||||
Checked in a **fresh interpreter**: asking ``sys.modules`` in this process only
|
||||
proves what some earlier test happened to import (it failed once the studio tests
|
||||
painted a widget before this file ran, which says nothing about the contract layer).
|
||||
The Qt name checked is the binding the app uses (PySide6), which is the only one that
|
||||
could be pulled in — the earlier spelling named PyQt5, before the migration.
|
||||
"""
|
||||
import subprocess
|
||||
import sys
|
||||
@@ -471,7 +473,7 @@ def test_the_contract_layer_imports_without_qt_or_opengl():
|
||||
script = (
|
||||
"import sys;"
|
||||
"import orisys_app_shared.scene3d.contracts as c;"
|
||||
"print(','.join(m for m in ('OpenGL', 'PyQt5', 'cv2') if m in sys.modules))"
|
||||
"print(','.join(m for m in ('OpenGL', 'PySide6', 'cv2') if m in sys.modules))"
|
||||
)
|
||||
result = subprocess.run(
|
||||
[sys.executable, "-c", script],
|
||||
|
||||
Reference in New Issue
Block a user