From 4cf1611e23ddf01f88e38857412c250ac46c91ec Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 10 Feb 2010 15:59:36 -0800 Subject: [PATCH] Make tests cleaner. --- tests/run/cpp_nested_templates.pyx | 2 -- tests/run/cpp_templates.pyx | 3 --- 2 files changed, 5 deletions(-) diff --git a/tests/run/cpp_nested_templates.pyx b/tests/run/cpp_nested_templates.pyx index dbfcab1b..7c79e3b8 100644 --- a/tests/run/cpp_nested_templates.pyx +++ b/tests/run/cpp_nested_templates.pyx @@ -21,8 +21,6 @@ def test_wrap_pair(int i, double x): >>> test_wrap_pair(2, 2.25) (2, 2.25, True) """ - cdef Pair[int, double] *pair - cdef Wrap[Pair[int, double]] *wrap try: pair = new Pair[int, double](i, x) wrap = new Wrap[Pair[int, double]](deref(pair)) diff --git a/tests/run/cpp_templates.pyx b/tests/run/cpp_templates.pyx index 118dfa08..1a700fea 100644 --- a/tests/run/cpp_templates.pyx +++ b/tests/run/cpp_templates.pyx @@ -21,7 +21,6 @@ def test_int(int x, int y): >>> test_int(100, 100) (100, 100, True) """ - cdef Wrap[int] *a, *b try: a = new Wrap[int](x) b = new Wrap[int](0) @@ -38,7 +37,6 @@ def test_double(double x, double y): >>> test_double(100, 100) (100.0, 100.0, True) """ - cdef Wrap[double] *a, *b try: a = new Wrap[double](x) b = new Wrap[double](-1) @@ -54,7 +52,6 @@ def test_pair(int i, double x): >>> test_pair(2, 2.25) (2, 2.25, True, False) """ - cdef Pair[int, double] *pair try: pair = new Pair[int, double](i, x) return pair.first(), pair.second(), deref(pair) == deref(pair), deref(pair) != deref(pair) -- 2.26.2