Commit c4c0acc5 authored by Robert Bradshaw's avatar Robert Bradshaw

Cleanup C++ test.

parent c79d2aa8
...@@ -9,19 +9,19 @@ cdef extern from "shapes.h" namespace "shapes": ...@@ -9,19 +9,19 @@ cdef extern from "shapes.h" namespace "shapes":
cdef cppclass Circle(Shape): cdef cppclass Circle(Shape):
int radius int radius
Circle(int) except + Circle(int r) except +
cdef cppclass Rectangle(Shape): cdef cppclass Rectangle(Shape):
int width int width
int height int height
Rectangle() except + Rectangle() except +
Rectangle(int, int) except + Rectangle(int h, int w) except +
int method(int) int method(int x)
int method(bint) int method(bint b)
cdef cppclass Square(Rectangle): cdef cppclass Square(Rectangle):
int side int side
Square(int) except + Square(int s) except +
cdef cppclass Empty(Shape): cdef cppclass Empty(Shape):
pass pass
...@@ -154,7 +154,7 @@ def test_template_class_member(): ...@@ -154,7 +154,7 @@ def test_template_class_member():
inner.push_back(Empty()) inner.push_back(Empty())
o = TemplateClassMember() o = TemplateClassMember()
o.vec.push_back(inner) o.vec.push_back(inner)
start_destructor_count = destructor_count start_destructor_count = destructor_count
del o del o
assert destructor_count - start_destructor_count == 2, \ assert destructor_count - start_destructor_count == 2, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment