emurphy@jitter-shadow:~/canonical/ubuntuone/shared/mocker$ python2.5 test.py
........................................................................................................................................................................................................................................................................................................................................................................................................................
----------------------------------------------------------------------
Ran 408 tests in 0.199s
OK
WARNING: No coverage test performed (missing coverage.py)
emurphy@jitter-shadow:~/canonical/ubuntuone/shared/mocker$ python2.6 test.py
...................................................F...................................................................................................................................................................................................................................................test.py:3999: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
self.assertEquals(message, error.message)
.................................................................................................................
======================================================================
FAIL: test_mock_iter (__main__.IntegrationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 242, in test_mock_iter
self.assertEquals(list(mock), [1, 2, 3])
File "/home/emurphy/canonical/ubuntuone/shared/mocker/mocker.py", line 1056, in __getattribute__
return self.__mocker_act__("getattr", (name,))
File "/home/emurphy/canonical/ubuntuone/shared/mocker/mocker.py", line 1040, in __mocker_act__
raise MatchError(str(exception))
MatchError: [Mocker] Unexpected expression: mock.__length_hint__
----------------------------------------------------------------------
Ran 408 tests in 0.161s
FAILED (failures=1)
WARNING: No coverage test performed (missing coverage.py)
We're having problems using mocker under python2.6, and it seems like the problem may be related to "Patch #1700288: added a type attribute cache that caches method accesses, resulting in speedups in heavily object-oriented code."