Skip to content

Commit

Permalink
Fix pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
thalassemia committed Dec 2, 2024
1 parent 35302cd commit 5ad13d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vivarium/core/serialize_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def test_non_string_keys() -> None:
except TypeError as e:
expected_error = (
"These paths end in incompatible non-string or Numpy string " +
"keys: [('1',), (1,), ('string', 'string2', 'string3', '1')]")
"keys: [(np.str_('1'),), (1,), ('string', 'string2', 'string3', np.str_('1'))]")
assert str(e) == expected_error


Expand All @@ -211,7 +211,7 @@ def test_unsupported_types() -> None:
except TypeError as e:
expected_error = (
"These paths end in incompatible non-string or Numpy string " +
"keys: [('bad string',)]")
"keys: [(np.str_('bad string'),)]")
assert str(e) == expected_error
assert str(e.__cause__) == 'Type is not JSON serializable: type'

Expand Down

0 comments on commit 5ad13d0

Please sign in to comment.