diff options
| author | Matej Stuchlik <mstuchli@redhat.com> | 2015-06-19 07:41:21 +0200 |
|---|---|---|
| committer | Matej Stuchlik <mstuchli@redhat.com> | 2015-06-19 07:41:21 +0200 |
| commit | 2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71 (patch) | |
| tree | 4069b0081d6490198bbb633cc85ae62a6a89dc53 /00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch | |
| parent | f5845b442d5e3c252df4de7d56bbafe3e8737613 (diff) | |
| download | python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.gz python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.tar.xz python34-2c1c983d5a4b8bc79e771cb8fd3f571b37d38d71.zip | |
Initial import (#1219411)
Diffstat (limited to '00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch')
| -rw-r--r-- | 00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch b/00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch new file mode 100644 index 0000000..afd8685 --- /dev/null +++ b/00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch @@ -0,0 +1,21 @@ +diff -up Python-3.3.0b2/Lib/test/test_sys.py.fix-COUNT_ALLOCS-failure-in-test_sys Python-3.3.0b2/Lib/test/test_sys.py +--- Python-3.3.0b2/Lib/test/test_sys.py.fix-COUNT_ALLOCS-failure-in-test_sys 2012-08-11 02:54:16.000000000 -0400 ++++ Python-3.3.0b2/Lib/test/test_sys.py 2012-08-13 14:50:15.253720597 -0400 +@@ -835,12 +835,17 @@ class SizeofTest(unittest.TestCase): + # type + # static type: PyTypeObject + s = vsize('P2n15Pl4Pn9Pn11PIP') ++ # COUNT_ALLOCS adds a further 3 Py_ssize_t and 2 pointers: ++ if hasattr(sys, 'getcounts'): ++ s += struct.calcsize('3P2P') + check(int, s) + # (PyTypeObject + PyNumberMethods + PyMappingMethods + + # PySequenceMethods + PyBufferProcs + 4P) + s = vsize('P2n15Pl4Pn9Pn11PIP') + struct.calcsize('34P 3P 10P 2P 4P') + # Separate block for PyDictKeysObject with 4 entries + s += struct.calcsize("2nPn") + 4*struct.calcsize("n2P") ++ if hasattr(sys, 'getcounts'): ++ s += struct.calcsize('3P2P') + # class + class newstyleclass(object): pass + check(newstyleclass, s) |
