Skip to content

Commit be34b66

Browse files
Add test cases for sys._jit
1 parent cf2f23a commit be34b66

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import sys
2+
from typing_extensions import assert_type
3+
4+
if sys.version_info >= (3, 14):
5+
assert_type(sys._jit.is_available(), bool)
6+
assert_type(sys._jit.is_enabled(), bool)
7+
assert_type(sys._jit.is_active(), bool)
8+
9+
# sys is not a package, so this should be an error
10+
import sys._jit # type: ignore

0 commit comments

Comments
 (0)