mocker test suite doesn't pass with python2.6

Bug #338448 reported by Elliot Murphy
2
Affects Status Importance Assigned to Milestone
Mocker
Fix Released
Undecided
Gustavo Niemeyer

Bug Description

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)

Revision history for this message
Elliot Murphy (statik) wrote :

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."

Revision history for this message
Gustavo Niemeyer (niemeyer) wrote :

The reported problem in the test suite which is seen in 2.6 has been fixed in trunk already, and will be out in 0.15.

Changed in mocker:
assignee: nobody → Gustavo Niemeyer (niemeyer)
status: New → Fix Committed
Changed in mocker:
status: Fix Committed → Fix Released
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.