summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_deque.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2021-05-05 00:08:31 (GMT)
committerGitHub <noreply@github.com>2021-05-05 00:08:31 (GMT)
commit6fdc4d37f3fdbc1bd51f841be6e5e4708a3b8798 (patch)
tree47852ade23869b887fab4b48be3e18d3ced5a753 /Lib/test/test_deque.py
parent355bae88822bee4de6092b63d69c5a5dad393a16 (diff)
downloadcpython-6fdc4d37f3fdbc1bd51f841be6e5e4708a3b8798.zip
cpython-6fdc4d37f3fdbc1bd51f841be6e5e4708a3b8798.tar.gz
cpython-6fdc4d37f3fdbc1bd51f841be6e5e4708a3b8798.tar.bz2
bpo-40521: Convert deque freelist from global vars to instance vars (GH-25906)
Diffstat (limited to 'Lib/test/test_deque.py')
-rw-r--r--Lib/test/test_deque.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py
index 93cc6ca..f1a7937 100644
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -740,8 +740,9 @@ class TestBasic(unittest.TestCase):
@support.cpython_only
def test_sizeof(self):
+ MAXFREEBLOCKS = 16
BLOCKLEN = 64
- basesize = support.calcvobjsize('2P4nP')
+ basesize = support.calcvobjsize('2P5n%dPP' % MAXFREEBLOCKS)
blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
self.assertEqual(object.__sizeof__(deque()), basesize)
check = self.check_sizeof