Test failures from sizeof RefList on win64

Bug #871449 reported by Martin Packman
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Meliae
New
Undecided
Unassigned

Bug Description

The following tests fail on win64, under reporting sizeof RefList by 4 bytes and overestimating the total sizeof MemObjectCollection by 4 bytes:

======================================================================
FAIL: test__sizeof__with_dummy (meliae.tests.test__loader.TestMemObjectCollection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "meliae\tests\test__loader.py", line 257, in test__sizeof__with_dummy
    has_gc=False)
  File "meliae\tests\test__loader.py", line 211, in assertSizeOf
    self.assertEqual(expected_size, _scanner.size_of(obj))
AssertionError: 8344 != 8336

======================================================================
FAIL: test__sizeof__with_reflists (meliae.tests.test__loader.TestMemObjectCollection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "meliae\tests\test__loader.py", line 249, in test__sizeof__with_reflists
    has_gc=False)
  File "meliae\tests\test__loader.py", line 211, in assertSizeOf
    self.assertEqual(expected_size, _scanner.size_of(obj))
AssertionError: 8344 != 8336

RefList should use size_t not long for its size, and the estimates in the tests need adapting.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.