Skip to content

Commit

Permalink
remove np.float and np.int
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasprobst committed Dec 15, 2023
1 parent 1dc7ddf commit 3a1ddfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/database/test_mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ def test_make_dict_mongo_compatible(self):
self.assertEqual(make_dict_mongo_compatible({'a': 1}), {'a': 1})
self.assertEqual(make_dict_mongo_compatible({'a': {'b': 4}}), {'a': {'b': 4}})
self.assertEqual(make_dict_mongo_compatible({'a': None}), {'a': None})
self.assertEqual(make_dict_mongo_compatible({'a': np.float(4.1)}),
self.assertEqual(make_dict_mongo_compatible({'a': 4.1}),
{'a': 4.1})
self.assertEqual(make_dict_mongo_compatible({'a': np.int(4)}),
self.assertEqual(make_dict_mongo_compatible({'a': 4}),
{'a': 4})
with self.assertWarns(UserWarning):
self.assertEqual(make_dict_mongo_compatible({'a': np.array(5.5)}),
Expand Down

0 comments on commit 3a1ddfb

Please sign in to comment.