Skip to content

Commit

Permalink
fix #1042 pass tests 613 with disabled C-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Mar 3, 2024
1 parent ff20ccc commit 90aceaf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_06_math/test_613_is_point_in_polygon_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
# License: MIT License
import pytest
from ezdxf.math import Vec2, is_convex_polygon_2d

from ezdxf.math._construct import is_point_in_polygon_2d # Python version
from ezdxf.acc import USE_C_EXT

is_point_in_polygon_cy = is_point_in_polygon_2d
try: # Cython version
from ezdxf.acc.construct import is_point_in_polygon_2d as is_point_in_polygon_cy
except ImportError:
pass

if USE_C_EXT:
try: # Cython version
from ezdxf.acc.construct import is_point_in_polygon_2d as is_point_in_polygon_cy
except ImportError:
pass


def test_inside_horizontal_box():
Expand Down

0 comments on commit 90aceaf

Please sign in to comment.