Major fixes and new features
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
venv/lib/python3.12/site-packages/mypy/test/testmypyc.py
Normal file
14
venv/lib/python3.12/site-packages/mypy/test/testmypyc.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""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"
|
||||
Reference in New Issue
Block a user