Skip to content

Commit d4d366b

Browse files
committed
fixup completion test
1 parent 3c6dce1 commit d4d366b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎astropy/units/tests/test_quantity_non_ufuncs.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,18 +2339,21 @@ def test_linalg_trace(self):
23392339
self.check(np.trace)
23402340

23412341
@needs_array_function
2342-
def test_cross(self):
2342+
def test_linalg_cross(self):
23432343
q1 = np.array([1, 2, 3]) << u.m
23442344
q2 = np.array([4, 5, 6]) << u.s
23452345
assert_array_equal(np.linalg.cross(q1, q2), np.cross(q1, q2))
23462346

23472347
@needs_array_function
2348-
def test_outer(self):
2348+
def test_linalg_outer(self):
23492349
q = self.q.flatten()
23502350
assert_array_equal(np.linalg.outer(q, q), np.outer(q, q))
23512351

23522352
@needs_array_function
23532353
def test_svdvals(self):
2354+
# TODO: this function should be named test_linalg_svdvals
2355+
# but at the moment this breaks the completion test
2356+
# see https://github.com/astropy/astropy/issues/15692
23542357
_, ref, _ = np.linalg.svd(self.q)
23552358
res = np.linalg.svdvals(self.q)
23562359
assert_allclose(res, ref, rtol=5e-16)

0 commit comments

Comments
 (0)