From b7204bfb9d1d8364b5bfaf7c30f82a17fcb8442f Mon Sep 17 00:00:00 2001 From: Lily Wang Date: Sat, 8 May 2021 13:05:17 -0700 Subject: [PATCH] remove np.int --- testsuite/MDAnalysisTests/coordinates/test_rdkit.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testsuite/MDAnalysisTests/coordinates/test_rdkit.py b/testsuite/MDAnalysisTests/coordinates/test_rdkit.py index 1fc1bea543d..8748437d978 100644 --- a/testsuite/MDAnalysisTests/coordinates/test_rdkit.py +++ b/testsuite/MDAnalysisTests/coordinates/test_rdkit.py @@ -434,9 +434,11 @@ def test_standardize_patterns(self, smi, out): @pytest.mark.parametrize("attr, value, getter", [ ("index", 42, "GetIntProp"), - ("index", np.int(42), "GetIntProp"), + ("index", np.int32(42), "GetIntProp"), + ("index", np.int64(42), "GetIntProp"), ("charge", 4.2, "GetDoubleProp"), - ("charge", np.float(4.2), "GetDoubleProp"), + ("charge", np.float32(4.2), "GetDoubleProp"), + ("charge", np.float64(4.2), "GetDoubleProp"), ("type", "C.3", "GetProp"), ]) def test_set_atom_property(self, attr, value, getter):