diff options
Diffstat (limited to 'sources/pyside2/tests/QtGui/qmatrix_test.py')
-rw-r--r-- | sources/pyside2/tests/QtGui/qmatrix_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside2/tests/QtGui/qmatrix_test.py b/sources/pyside2/tests/QtGui/qmatrix_test.py index 7cfe9ea60..bc6a2b8ae 100644 --- a/sources/pyside2/tests/QtGui/qmatrix_test.py +++ b/sources/pyside2/tests/QtGui/qmatrix_test.py @@ -47,7 +47,8 @@ class QMatrixTest(unittest.TestCase): def testMatrixWithWrongType(self): matrix = QMatrix(11, 12, 21, 22, 100, 200) point = QPoint(3, 3) - self.assertRaises(TypeError, matrix.__mul__, point) + # This exception may move from a TypeError to a ValueError. + self.assertRaises((TypeError, ValueError), matrix.__mul__, point) def testMatrix2x2(self): matrix = QMatrix2x2([1.0, 2.0, 3.0, 4.0]) |