summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2017-01-24 07:40:22 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2017-01-24 19:01:43 +0000
commit481ebfab45e70fbac6c39ef70078dee271a16c94 (patch)
treecb8aac19a7ae4b0d9e6a597c0e03644e7a88de0c /Examples/test-suite/python
parent83519138e8ca5daf61592b8222d6b8f279ed9b8f (diff)
downloadswig-481ebfab45e70fbac6c39ef70078dee271a16c94.tar.gz
Enhance %extend to extend a class with static template methods
Diffstat (limited to 'Examples/test-suite/python')
-rw-r--r--Examples/test-suite/python/extend_template_method_runme.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Examples/test-suite/python/extend_template_method_runme.py b/Examples/test-suite/python/extend_template_method_runme.py
index eb7a6d654..32bd7b070 100644
--- a/Examples/test-suite/python/extend_template_method_runme.py
+++ b/Examples/test-suite/python/extend_template_method_runme.py
@@ -17,6 +17,8 @@ ret_string = em.do_overloaded_stuff("hello there")
if ret_string != "hello there":
raise RuntimeError("string failed " + ret_string)
+if ExtendMe.static_method(123) != 123:
+ raise RuntimeError("static_method failed");
em = TemplateExtend()
@@ -34,3 +36,6 @@ if ret_double != 1.1:
ret_string = em.do_template_overloaded_stuff("hello there")
if ret_string != "hello there":
raise RuntimeError("string failed " + ret_string)
+
+if TemplateExtend.static_template_method(123) != 123:
+ raise RuntimeError("static_template_method failed");