aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/samplebinding
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-08-21 08:18:20 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-08-21 08:18:20 +0200
commitd9225ff6dd397af9558a882de2a33a981e994a53 (patch)
treedd60ba6b8ac7397b347aebc4e801d37c9028e4df /sources/shiboken2/tests/samplebinding
parentb33f0c3708c16821a846013d28ca600863003b3e (diff)
parent3a7856eb4b129449da8fd3c9b7185a4cb2d9cc68 (diff)
Merge remote-tracking branch 'origin/5.14' into dev
Diffstat (limited to 'sources/shiboken2/tests/samplebinding')
-rw-r--r--sources/shiboken2/tests/samplebinding/objecttype_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/shiboken2/tests/samplebinding/objecttype_test.py b/sources/shiboken2/tests/samplebinding/objecttype_test.py
index bda14c69c..f1a06c2b1 100644
--- a/sources/shiboken2/tests/samplebinding/objecttype_test.py
+++ b/sources/shiboken2/tests/samplebinding/objecttype_test.py
@@ -118,5 +118,13 @@ class ObjectTypeTest(unittest.TestCase):
self.assertLess(abs(before - after), 5)
+ def testInvalidProperty(self):
+ o = ObjectType()
+ try:
+ o.typo
+ self.assertFail()
+ except AttributeError as error:
+ self.assertEqual(error.args[0], "'sample.ObjectType' object has no attribute 'typo'")
+
if __name__ == '__main__':
unittest.main()