Files
Andrew K. Choi ddce9f5125
All checks were successful
continuous-integration/drone/push Build is passing
Major fixes and new features
2025-09-25 15:51:48 +09:00

15 lines
397 B
Python

"""A basic check to make sure that we are using a mypyc-compiled version when expected."""
from __future__ import annotations
import os
from unittest import TestCase
import mypy
class MypycTest(TestCase):
def test_using_mypyc(self) -> None:
if os.getenv("TEST_MYPYC", None) == "1":
assert not mypy.__file__.endswith(".py"), "Expected to find a mypyc-compiled version"