aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/tests/QtWidgets/signature_test.py
diff options
context:
space:
mode:
authorSimo Fält <simo.falt@qt.io>2023-05-25 11:25:57 +0300
committerSimo Fält <simo.falt@qt.io>2023-05-25 11:25:57 +0300
commit2342e61cb53824e2dcd6324e3d108500d61ffee2 (patch)
tree2899ebce2effcb9e3bd5622fbdb371f75feadd59 /sources/pyside2/tests/QtWidgets/signature_test.py
parente31990ada911989dbcef3d4833f77dd054030e2c (diff)
parentb9cf35960e98adf9af7c4ea2cc09bfbdadf4f71f (diff)
Merge tag 'v5.15.8-lts' into tqtc/lts-5.15-opensourcev5.15.8-lts-lgpl
Qt For Python Release 5.15.8 Change-Id: Ib92716482ef78eead1859f4f0c980b308a6e5846
Diffstat (limited to 'sources/pyside2/tests/QtWidgets/signature_test.py')
-rw-r--r--sources/pyside2/tests/QtWidgets/signature_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside2/tests/QtWidgets/signature_test.py b/sources/pyside2/tests/QtWidgets/signature_test.py
index 57fcf3874..cacb576d7 100644
--- a/sources/pyside2/tests/QtWidgets/signature_test.py
+++ b/sources/pyside2/tests/QtWidgets/signature_test.py
@@ -65,8 +65,9 @@ class PySideSignatureTest(unittest.TestCase):
for thing in obj.__signature__:
self.assertEqual(type(thing), inspect.Signature)
sm = PySide2.QtWidgets.QApplication.__dict__["palette"]
- self.assertFalse(callable(sm))
- self.assertEqual(sm.__func__, obj)
+ # PYSIDE-1436: staticmethod is a callable since Python 3.10
+ # Instead of checking callable(sm), we check the type:
+ self.assertEqual(type(sm), staticmethod)
self.assertTrue(hasattr(sm, "__signature__") and
sm.__signature__ is not None)