Skip to content

Commit 4393350

Browse files
committed
Remove tests that only applied to 3.13
1 parent a03c3ad commit 4393350

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

Lib/test/test_type_cache.py

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -198,45 +198,6 @@ def store_bar_2(type_):
198198

199199
self._check_specialization(store_bar_2, B(), "STORE_ATTR", should_specialize=False)
200200

201-
def test_class_call_specialization_user_type(self):
202-
class F:
203-
def __init__(self):
204-
pass
205-
206-
self._assign_valid_version_or_skip(F)
207-
208-
def call_class_1(type_):
209-
type_()
210-
211-
self._check_specialization(call_class_1, F, "CALL", should_specialize=True)
212-
del call_class_1
213-
214-
self._assign_and_check_version_0(F)
215-
216-
def call_class_2(type_):
217-
type_()
218-
219-
self._check_specialization(call_class_2, F, "CALL", should_specialize=False)
220-
221-
def test_to_bool_specialization_user_type(self):
222-
class H:
223-
pass
224-
225-
self._assign_valid_version_or_skip(H)
226-
227-
def to_bool_1(instance):
228-
not instance
229-
230-
self._check_specialization(to_bool_1, H(), "TO_BOOL", should_specialize=True)
231-
del to_bool_1
232-
233-
self._assign_and_check_version_0(H)
234-
235-
def to_bool_2(instance):
236-
not instance
237-
238-
self._check_specialization(to_bool_2, H(), "TO_BOOL", should_specialize=False)
239-
240201

241202
if __name__ == "__main__":
242203
unittest.main()

0 commit comments

Comments
 (0)