From 35d78072c0973a1f991ce4d415c2eab9a7c16449 Mon Sep 17 00:00:00 2001 From: AJ Friend Date: Fri, 27 Sep 2024 12:20:48 -0700 Subject: [PATCH] fix test_cell_to_vertex; helps coverage by removing untouched branch --- tests/test_h3.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_h3.py b/tests/test_h3.py index 37fb7049..9b5bae52 100644 --- a/tests/test_h3.py +++ b/tests/test_h3.py @@ -400,12 +400,9 @@ def test_cell_to_vertex(): assert h3.cell_to_vertex('814c3ffffffffff', 2) == '2214c3ffffffffff' assert h3.cell_to_vertex('814c3ffffffffff', 3) == '2314c3ffffffffff' assert h3.cell_to_vertex('814c3ffffffffff', 4) == '2414c3ffffffffff' - try: + + with pytest.raises(h3.H3DomainError): h3.cell_to_vertex('814c3ffffffffff', 5) - except h3._cy.error_system.H3DomainError: - pass - else: - assert False # hexagon assert h3.cell_to_vertex('814d7ffffffffff', 0) == '2014d7ffffffffff'