Skip to content

Commit 1e81a46

Browse files
committed
Fix other tests.
1 parent 9d65404 commit 1e81a46

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/test_type_eval.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def test_uppercase_never():
896896

897897
def test_never_is():
898898
d = eval_typing(IsSub[Never, Never])
899-
assert d is True
899+
assert d == LiteralGeneric[True]
900900

901901

902902
def test_eval_iter_01():
@@ -1052,7 +1052,9 @@ def test_eval_literal_idempotent_01():
10521052

10531053

10541054
def test_is_literal_true_vs_one():
1055-
assert eval_typing(IsSub[Literal[True], Literal[1]]) is False
1055+
assert (
1056+
eval_typing(IsSub[Literal[True], Literal[1]]) == LiteralGeneric[False]
1057+
)
10561058

10571059

10581060
def test_callable_to_signature_01():
@@ -1220,7 +1222,7 @@ class AnnoTest:
12201222

12211223
def test_type_eval_annotated_02():
12221224
res = eval_typing(IsSub[GetAttr[AnnoTest, Literal["a"]], int])
1223-
assert res is True
1225+
assert res == LiteralGeneric[True]
12241226

12251227

12261228
def test_type_eval_annotated_03():

0 commit comments

Comments
 (0)