Commit 76e1e9db authored by Stefan Behnel's avatar Stefan Behnel

fix test: runtime dispatch is done only on the first occurrence of a fused...

fix test: runtime dispatch is done only on the first occurrence of a fused buffer type and later mismatches lead to type failures after the call (which is acceptable since it speeds up the dispatch and leads to an error anyway)
parent 7aef6584
...@@ -738,10 +738,12 @@ def test_dispatch_non_clashing_declarations_repeating_types(np.ndarray[cython.fl ...@@ -738,10 +738,12 @@ def test_dispatch_non_clashing_declarations_repeating_types(np.ndarray[cython.fl
1.0 2 3.0 4 1.0 2 3.0 4
>>> test_dispatch_non_clashing_declarations_repeating_types(float64_array, int64_array, float64_array, int64_array) >>> test_dispatch_non_clashing_declarations_repeating_types(float64_array, int64_array, float64_array, int64_array)
1.0 2 3.0 4 1.0 2 3.0 4
>>> test_dispatch_non_clashing_declarations_repeating_types(float64_array, int32_array, float64_array, int64_array) >>> test_dispatch_non_clashing_declarations_repeating_types(float64_array, int32_array, float64_array, int64_array) # doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... ValueError: Buffer dtype mismatch, expected 'int32_t'...
TypeError: No matching signature found >>> test_dispatch_non_clashing_declarations_repeating_types(float64_array, int64_array, float64_array, int32_array) # doctest: +ELLIPSIS
Traceback (most recent call last):
ValueError: Buffer dtype mismatch, expected 'int64_t'...
""" """
print a1[1], a2[2], a3[3], a4[4] print a1[1], a2[2], a3[3], a4[4]
......
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