All pastes #467242 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-02 12:25 UTC
rendered paste body
14:24 rage@grim ~/dev_emencia/emencia/ecscache% python tests/test_ecscache.py
EEE.
======================================================================
ERROR: test_different_function (__main__.EcsCacheTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_ecscache.py", line 95, in test_different_function
    self.assertEqual(self.sum(3, 4), 7)
  File "tests/test_ecscache.py", line 52, in __call__
    return initmemoize.__call__(self, *args, **kw)
  File "ecscache.py", line 83, in __call__
    return self._wrap(*args, **kw)
  File "ecscache.py", line 91, in _wrap
    res = self.func(*args, **kw)
TypeError: sum() takes exactly 3 arguments (2 given)

======================================================================
ERROR: test_empty_functions (__main__.EcsCacheTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_ecscache.py", line 121, in test_empty_functions
    self.assertEqual(self.empty_method(), 'empty_method')
  File "tests/test_ecscache.py", line 52, in __call__
    return initmemoize.__call__(self, *args, **kw)
  File "ecscache.py", line 83, in __call__
    return self._wrap(*args, **kw)
  File "ecscache.py", line 91, in _wrap
    res = self.func(*args, **kw)
TypeError: empty_method() takes exactly 1 argument (0 given)

======================================================================
ERROR: test_flush_cache (__main__.EcsCacheTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_ecscache.py", line 86, in test_flush_cache
    self.assertEqual(self.sum(3, 4), 7)
  File "tests/test_ecscache.py", line 52, in __call__
    return initmemoize.__call__(self, *args, **kw)
  File "ecscache.py", line 83, in __call__
    return self._wrap(*args, **kw)
  File "ecscache.py", line 91, in _wrap
    res = self.func(*args, **kw)
TypeError: sum() takes exactly 3 arguments (2 given)

----------------------------------------------------------------------
Ran 4 tests in 4.001s

FAILED (errors=3)
zsh: exit 1     /home/rage/dev_emencia/python/Python-2.4.4/bin/python tests/test_ecscache.py