diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2014-08-20 23:55:53 -0700 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2014-08-20 23:55:53 -0700 |
commit | c4c0acc50a83d6f46d2f1744784c61ae194a7608 (patch) | |
tree | fb301791ebcca528333abe684109f6a5b0a3071a | |
parent | c79d2aa87cc159b05e009d458e4d4f81d5fee214 (diff) | |
download | cython-c4c0acc50a83d6f46d2f1744784c61ae194a7608.tar.gz |
Cleanup C++ test.
-rw-r--r-- | tests/run/cpp_classes.pyx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/run/cpp_classes.pyx b/tests/run/cpp_classes.pyx index ead764190..5f2dbf83f 100644 --- a/tests/run/cpp_classes.pyx +++ b/tests/run/cpp_classes.pyx @@ -9,19 +9,19 @@ cdef extern from "shapes.h" namespace "shapes": cdef cppclass Circle(Shape): int radius - Circle(int) except + + Circle(int r) except + cdef cppclass Rectangle(Shape): int width int height Rectangle() except + - Rectangle(int, int) except + - int method(int) - int method(bint) + Rectangle(int h, int w) except + + int method(int x) + int method(bint b) cdef cppclass Square(Rectangle): int side - Square(int) except + + Square(int s) except + cdef cppclass Empty(Shape): pass @@ -154,7 +154,7 @@ def test_template_class_member(): inner.push_back(Empty()) o = TemplateClassMember() o.vec.push_back(inner) - + start_destructor_count = destructor_count del o assert destructor_count - start_destructor_count == 2, \ |