@@ -59,7 +59,6 @@ def assert_equal_tensor_ref(mat, writeable=True, modified=None):
59
59
@pytest .mark .parametrize ("m" , submodules )
60
60
@pytest .mark .parametrize ("member_name" , ["member" , "member_view" ])
61
61
def test_reference_internal (m , member_name ):
62
-
63
62
if not hasattr (sys , "getrefcount" ):
64
63
pytest .skip ("No reference counting" )
65
64
foo = m .CustomExample ()
@@ -108,7 +107,6 @@ def test_convert_tensor_to_py(m, func_name):
108
107
109
108
@pytest .mark .parametrize ("m" , submodules )
110
109
def test_bad_cpp_to_python_casts (m ):
111
-
112
110
with pytest .raises (
113
111
RuntimeError , match = "Cannot use reference internal when there is no parent"
114
112
):
@@ -131,7 +129,6 @@ def test_bad_cpp_to_python_casts(m):
131
129
132
130
@pytest .mark .parametrize ("m" , submodules )
133
131
def test_bad_python_to_cpp_casts (m ):
134
-
135
132
with pytest .raises (
136
133
TypeError , match = r"^round_trip_tensor\(\): incompatible function arguments"
137
134
):
@@ -194,7 +191,6 @@ def test_bad_python_to_cpp_casts(m):
194
191
195
192
@pytest .mark .parametrize ("m" , submodules )
196
193
def test_references_actually_refer (m ):
197
-
198
194
a = m .reference_tensor ()
199
195
temp = a [indices ]
200
196
a [indices ] = 100
@@ -211,7 +207,6 @@ def test_references_actually_refer(m):
211
207
212
208
@pytest .mark .parametrize ("m" , submodules )
213
209
def test_round_trip (m ):
214
-
215
210
assert_equal_tensor_ref (m .round_trip_tensor (tensor_ref ))
216
211
217
212
with pytest .raises (TypeError , match = "^Cannot cast array data from" ):
@@ -260,7 +255,6 @@ def test_round_trip(m):
260
255
261
256
@pytest .mark .parametrize ("m" , submodules )
262
257
def test_round_trip_references_actually_refer (m ):
263
-
264
258
# Need to create a copy that matches the type on the C side
265
259
copy = np .array (tensor_ref , dtype = np .float64 , order = m .needed_options )
266
260
a = m .round_trip_view_tensor (copy )
0 commit comments