We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4933969 commit 866b39eCopy full SHA for 866b39e
numpy/core/tests/test__exceptions.py
@@ -48,5 +48,9 @@ def test__total_size(self):
48
49
class TestUFuncNoLoopError:
50
def test_pickling(self):
51
- """ Test that _UFuncNoLoopError can be pickled """
+ """ Test that _UFuncNoLoopError, _ArrayMemoryError can be pickled """
52
assert isinstance(pickle.dumps(_UFuncNoLoopError), bytes)
53
+
54
+ error = _ArrayMemoryError((1023,), np.dtype(np.uint8))
55
+ res = pickle.loads(pickle.dumps(error))
56
+ assert res._total_size == error._total_size
0 commit comments