]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blame - python/patches/00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch
nasm: Update to 2.14.02
[people/stevee/ipfire-3.x.git] / python / patches / 00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch
CommitLineData
4034c523
SS
1diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
2index 0dd4258..d9b3267 100644
3--- a/Lib/test/test_sys.py
4+++ b/Lib/test/test_sys.py
5@@ -769,6 +769,11 @@ class SizeofTest(unittest.TestCase):
6 '10P' # PySequenceMethods
7 '6P' # PyBufferProcs
8 '2P')
48d9a6a0
MT
9+
10+ # COUNT_ALLOCS adds further fields to the end of a PyTypeObject:
11+ if hasattr(sys, 'getcounts'):
12+ s += size('P')
13+
14 class newstyleclass(object):
15 pass
16 check(newstyleclass, s)