- update to 0.1.1 * importhooks: Fix deprecation warnings `find_module` and `load_module` are deprecated. - from version 0.1.0 * Update imports of QWebEngineCore components for Qt6 * Add tests * Add forward compatible QTextEdit.setTabStopDistance, ... * Qt5: Add forward compatible QAbstractItem.itemDelegateForIndex method * Add forward compatible QAbstractItemView.initViewItemOption * Make available enum members in type when not present * PyQt6: Add ctypes QAction.menu/setMenut * Add QLibraryInfo.path if not present * PyQt6: Add back obsolete accessors to QWheelEvent * PyQt6: Add back obsolete accessors to QDropEvent, QEnterEvent * PyQt6: Add back obsolete pos,x, ..., accessors to QMouseEvent * PyQt6: Implement QAbstractItemView.viewOptions back compatible method * PyQt6: Move QShortcut, QAction imports * PyQt6: Move QUndoStack, ... imports * PyQt6: Add back some common Enum/Flag type aliases * PyQt6: Add QtSvgWidgets stub module * Add support for PyQt6 * Make all members of QFontDatabase static - updated patch do-not-test-pyqt4.patch OBS-URL: https://build.opensuse.org/request/show/992228 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-AnyQt?expand=0&rev=18
21 lines
604 B
Diff
21 lines
604 B
Diff
From: Antonio Larrosa <alarrosa@suse.com>
|
|
|
|
We don't have PyQt4 bindings (not even Qt4 packages) so `import PyQt4`
|
|
should fail but the python3-sip package in SLE creates the directory
|
|
so the import doesn't fail and then it fails where the test doesn't
|
|
expect it.
|
|
|
|
|
|
Index: AnyQt-0.1.1/test/test_import.py
|
|
===================================================================
|
|
--- AnyQt-0.1.1.orig/test/test_import.py
|
|
+++ AnyQt-0.1.1/test/test_import.py
|
|
@@ -2,7 +2,6 @@ import subprocess
|
|
import sys
|
|
|
|
apis = {
|
|
- 'pyqt4': 'PyQt4',
|
|
'pyqt5': 'PyQt5',
|
|
'pyside': 'PySide',
|
|
'pyside2': 'PySide2',
|