Added test for invalid QStringList conversion.
This commit is contained in:
parent
e567c33769
commit
1e8fae534a
1 changed files with 6 additions and 0 deletions
|
|
@ -161,5 +161,11 @@ class TestShiftOperator(UsesManyStrings):
|
||||||
a << b << c
|
a << b << c
|
||||||
self.assertEquals(9, a.count())
|
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__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue