Skip to content

Commit b62fc5c

Browse files
committed
Enhance resize test
1 parent a5f8607 commit b62fc5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_capi/test_unicode.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def resize(s, length, new=True, compute_hash=False):
224224
else:
225225
# In-size replace can return the same address, or not.
226226
# So 'is_new_obj' cannot be tested.
227-
self.assertFalse(sys._is_immortal(result))
227+
self.assert_is_mutable(result, refcnt)
228228

229229
return result
230230

0 commit comments

Comments
 (0)