Skip to content

Commit

Permalink
tests: Fix up pickle tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Aug 2, 2024
1 parent 89a6dcf commit 09a44e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ def test_internal_symbols(self, pickle):
assert new_s.name == s.name
assert new_s.dtype is np.int32
assert new_s.is_const is True
assert new_s.nonnegative is None
assert new_s.is_nonnegative is None

s = Scalar(name='s', nonnegative=True)
pkl_s = pickle.dumps(s)
new_s = pickle.loads(pkl_s)
assert new_s.name == s.name
assert new_s.assumptions0['nonnegative'] is True
assert new_s.nonnegative is True
assert new_s.is_nonnegative is True

def test_bound_symbol(self, pickle):
grid = Grid(shape=(3, 3, 3))
Expand Down

0 comments on commit 09a44e0

Please sign in to comment.