From cccec7020f0369007832ebb28fdde331340a02e4 Mon Sep 17 00:00:00 2001 From: Emily Dolson Date: Wed, 10 Jul 2024 00:21:53 +1000 Subject: [PATCH] Fix coverage flags --- Makefile | 2 +- systematics_bindings.cpp | 2 +- test/test_systematics.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1442c70..3347ec5 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ debug: $(CXX) $(FLAG) $(DEBUG_flags) $(INCLUDE) systematics_bindings.cpp -o phylotrackpy/systematics$(SUFFIX) coverage: - $(CXX) $(FLAG) $(INCLUDE) -DNDEBUG -fprofile-arcs -ftest-coverage --coverage systematics_bindings.cpp -o phylotrackpy/systematics$(SUFFIX) + $(CXX) $(FLAG) $(INCLUDE) -DNDEBUG -DEMP_OPTIONAL_THROW_ON -fprofile-arcs -ftest-coverage --coverage systematics_bindings.cpp -o phylotrackpy/systematics$(SUFFIX) clean: rm -rf phylotrackpy/systematics$(SUFFIX) diff --git a/systematics_bindings.cpp b/systematics_bindings.cpp index d3aba11..a425c7c 100644 --- a/systematics_bindings.cpp +++ b/systematics_bindings.cpp @@ -418,7 +418,7 @@ PYBIND11_MODULE(systematics, m) { .def("get_num_roots", static_cast(&sys_t::GetNumRoots), R"mydelimiter( Returns the number of independent phylogenies currently being tracked. )mydelimiter") - .def("get_next_id", static_cast(&sys_t::GetNextID), R"mydelimiter( + .def("get_next_id", static_cast(&sys_t::GetNextID), R"mydelimiter( Returns the ID of the next taxon that will be created. )mydelimiter") .def("get_ave_depth", static_cast(&sys_t::GetAveDepth), R"mydelimiter( diff --git a/test/test_systematics.py b/test/test_systematics.py index 778b429..8235b72 100755 --- a/test/test_systematics.py +++ b/test/test_systematics.py @@ -291,7 +291,7 @@ def test_shared_ancestor(): def test_bad_load(): sys = systematics.Systematics(taxon_info_fun, True, True, False, False) with raises(RuntimeError): - sys.load_from_file(f"fake.file.path", "genome", True) + sys.load_from_file("fake.file.path", "genome", True) def test_load_data():