Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions tests/test_aero_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,16 +291,21 @@ 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()

@pytest.mark.skipif(platform.machine() == "arm64", reason="TODO #348")
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
Loading