Skip to content

Commit 3a201f2

Browse files
committed
Fix test error on removed numpy.complex
Can as well test with the builtin complex here.
1 parent 5bcc847 commit 3a201f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffpy/srreal/tests/testpairquantity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_setPairMask_args(self):
8383
spm = self.pq.setPairMask
8484
gpm = self.pq.getPairMask
8585
self.assertRaises(TypeError, spm, 0.0, 0, False)
86-
self.assertRaises(TypeError, spm, numpy.complex(0.5), 0, False)
86+
self.assertRaises(TypeError, spm, complex(0.5), 0, False)
8787
self.assertTrue(gpm(0, 0))
8888
spm(numpy.int32(1), 0, True, others=False)
8989
self.assertTrue(gpm(0, 1))

0 commit comments

Comments
 (0)