You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
615 B

  1. #!/usr/bin/env python
  2. from __future__ import print_function
  3. import sys
  4. sys.path.append('.')
  5. from example.issues import print_cchar, print_char
  6. from example.issues import DispatchIssue, dispatch_issue_go
  7. print_cchar("const char *")
  8. print_char('c')
  9. class PyClass1(DispatchIssue):
  10. def dispatch(self):
  11. print("Yay..")
  12. class PyClass2(DispatchIssue):
  13. def dispatch(self):
  14. try:
  15. super(PyClass2, self).dispatch()
  16. except Exception as e:
  17. print("Failed as expected: " + str(e))
  18. p = PyClass1()
  19. dispatch_issue_go(p)
  20. b = PyClass2()
  21. dispatch_issue_go(b)