diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtcore/qstringlist_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qtcore/qstringlist_test.py b/tests/qtcore/qstringlist_test.py index e2a238eb2..031051684 100644 --- a/tests/qtcore/qstringlist_test.py +++ b/tests/qtcore/qstringlist_test.py @@ -161,5 +161,11 @@ class TestShiftOperator(UsesManyStrings): a << b << c self.assertEquals(9, a.count()) + def testShiftOperator(self): + #QStringList lshift + a = QStringList() + b = ["1", 2, "3"] + self.assertRaises(TypeError, a.__lshift__, b) + if __name__ == '__main__': unittest.main() |