Commit 6b4058c5 authored by Stefan Behnel's avatar Stefan Behnel

clean up test code: "unoptimised" code is no longer unoptimised

parent 715b340a
...@@ -16,8 +16,6 @@ def test_non_optimised(): ...@@ -16,8 +16,6 @@ def test_non_optimised():
# Non-optimized # Non-optimized
cdef object foo = A cdef object foo = A
assert isinstance(A(), foo) assert isinstance(A(), foo)
assert isinstance(0, (int, long))
assert not isinstance(u"xyz", (int, long))
return True return True
@cython.test_assert_path_exists('//PythonCapiCallNode', @cython.test_assert_path_exists('//PythonCapiCallNode',
...@@ -118,6 +116,8 @@ def test_optimised_tuple(): ...@@ -118,6 +116,8 @@ def test_optimised_tuple():
assert isinstance(int(), (int, long, float, bytes, str, unicode, tuple, list, dict, set, slice, type, A)) assert isinstance(int(), (int, long, float, bytes, str, unicode, tuple, list, dict, set, slice, type, A))
assert isinstance(list(), (int, long, float, bytes, str, unicode, tuple, list, dict, set, slice, type, A)) assert isinstance(list(), (int, long, float, bytes, str, unicode, tuple, list, dict, set, slice, type, A))
assert isinstance(A(), (int, long, float, bytes, str, unicode, tuple, list, dict, set, slice, type, A)) assert isinstance(A(), (int, long, float, bytes, str, unicode, tuple, list, dict, set, slice, type, A))
assert isinstance(0, (int, long))
assert not isinstance(u"xyz", (int, long))
return True return True
def test_custom(): def test_custom():
......
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