test_dependencies.py 284 B

12345678
  1. import pydantic
  2. def test_pydantic_1x_compiled() -> None:
  3. if not pydantic.VERSION.startswith("1."):
  4. raise AssertionError("delete this test, it only applies to pydantic 1.x")
  5. # pydantic is horribly slow when not cythonized
  6. assert pydantic.__file__.endswith(".so")