diff --git a/tests/test_tskit_metadata.py b/tests/test_tskit_metadata.py index 0187550d1..4a46eff00 100644 --- a/tests/test_tskit_metadata.py +++ b/tests/test_tskit_metadata.py @@ -59,6 +59,9 @@ def test_single_model_params(pop, pdict1): ts = pop.dump_tables_to_tskit(model_params=mp) # reconstruct + for i in dir(fwdpy11): + exec(f"from fwdpy11 import {i}") + mp_rebuilt = fwdpy11.ModelParams(**eval(ts.metadata["model_params"])) assert mp == mp_rebuilt