Skip to content

Commit 1f76e2c

Browse files
Fix tests
1 parent 9bef4a4 commit 1f76e2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Lib/test/test_generated_cases.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2226,10 +2226,10 @@ def test_validate_uop_unused_size_mismatch(self):
22262226

22272227
def test_pure_uop_body_copied_in(self):
22282228
# Note: any non-escaping call works.
2229-
# In this case, we use _PyLong_Add.
2229+
# In this case, we use PyStackRef_IsNone.
22302230
input = """
22312231
pure op(OP, (foo -- res)) {
2232-
res = _PyLong_Add(foo);
2232+
res = PyStackRef_IsNone(foo);
22332233
}
22342234
"""
22352235
input2 = """
@@ -2250,7 +2250,7 @@ def test_pure_uop_body_copied_in(self):
22502250
_PyStackRef foo = sym_get_const_as_stackref(ctx, foo_sym);
22512251
_PyStackRef res_stackref;
22522252
/* Start of uop copied from bytecodes for constant evaluation */
2253-
res_stackref = _PyLong_Add(foo);
2253+
res_stackref = PyStackRef_IsNone(foo);
22542254
/* End of uop copied from bytecodes for constant evaluation */
22552255
res = sym_new_const_steal(ctx, PyStackRef_AsPyObjectSteal(res_stackref));
22562256
stack_pointer[-1] = res;
@@ -2267,7 +2267,7 @@ def test_pure_uop_body_copied_in_complex(self):
22672267
input = """
22682268
pure op(OP, (foo -- res)) {
22692269
if (foo) {
2270-
res = _PyLong_Add(foo);
2270+
res = PyStackRef_IsNone(foo);
22712271
}
22722272
else {
22732273
res = 1;
@@ -2293,7 +2293,7 @@ def test_pure_uop_body_copied_in_complex(self):
22932293
_PyStackRef res_stackref;
22942294
/* Start of uop copied from bytecodes for constant evaluation */
22952295
if (foo) {
2296-
res_stackref = _PyLong_Add(foo);
2296+
res_stackref = PyStackRef_IsNone(foo);
22972297
}
22982298
else {
22992299
res_stackref = 1;
@@ -2314,7 +2314,7 @@ def test_pure_uop_reject_array_effects(self):
23142314
input = """
23152315
pure op(OP, (foo[2] -- res)) {
23162316
if (foo) {
2317-
res = body(foo);
2317+
res = PyStackRef_IsNone(foo);
23182318
}
23192319
else {
23202320
res = 1;

0 commit comments

Comments
 (0)