Skip to content

Commit 66f5351

Browse files
committed
Remove refcount check
This may be 1 if the `LOAD_FAST` is optimized to a `LOAD_FAST_BORROW`. It's not clear that this is testing anything useful, so remove it.
1 parent d75ec9a commit 66f5351

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/test/test_ctypes/test_memfunctions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ def test_cast(self):
6060
@support.refcount_test
6161
def test_string_at(self):
6262
s = string_at(b"foo bar")
63-
# XXX The following may be wrong, depending on how Python
64-
# manages string instances
65-
self.assertEqual(2, sys.getrefcount(s))
6663
self.assertTrue(s, "foo bar")
6764

6865
self.assertEqual(string_at(b"foo bar", 7), b"foo bar")

0 commit comments

Comments
 (0)