diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-17 16:56:39 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-17 18:17:20 -0300 |
commit | 1e8fae534a702555055718810ac8b09ea4fcdd92 (patch) | |
tree | 50886866d5aeb3dc5d082dae29916cc4d3ee812d /tests | |
parent | e567c33769897f7bb5cdc299738ba21c1c649702 (diff) |
Added test for invalid QStringList conversion.
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() |