Skip to content

Commit

Permalink
bump pybind11_json to 0.2.15 and remove one test skip given a segfaul…
Browse files Browse the repository at this point in the history
…t was fixed. closes open-atmos#319
  • Loading branch information
slayoo committed Dec 9, 2024
1 parent bd3e22c commit 1d85c54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions tests/test_aero_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,20 @@ def test_ctor_fails_with_nonunique_mass_fracs():
assert str(exc_info.value) == "mass_frac keys must be unique"

@staticmethod
def test_segfault_case(): # TODO #319
pytest.skip()

def test_fixed_segfault_case_on_circular_reference():
# arrange
aero_data = ppmc.AeroData(AERO_DATA_CTOR_ARG_MINIMAL)
fishy_ctor_arg = copy.deepcopy(AERO_MODE_CTOR_LOG_NORMAL)
fishy_ctor_arg["test_mode"]["mass_frac"].append(
fishy_ctor_arg["test_mode"]["mass_frac"]
)
print(fishy_ctor_arg)
ppmc.AeroMode(aero_data, fishy_ctor_arg)

# act
with pytest.raises(TypeError) as exc_info:
ppmc.AeroMode(aero_data, fishy_ctor_arg)

# assert
assert "incompatible constructor arguments" in str(exc_info.value)

@staticmethod
@pytest.mark.skipif(platform.machine() == "arm64", reason="TODO #348")
Expand Down

0 comments on commit 1d85c54

Please sign in to comment.