roy.q...@gmail.com
unread,Apr 24, 2013, 4:30:42 AM4/24/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mako-d...@googlegroups.com
When I run the self test case by "nosetests -v", I met the below errors,
Could anyone help me to fix it?
======================================================================
ERROR: test_fileargs_implicit (test.test_cache.CacheTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python-mako/test/test_cache.py", line 310, in test_fileargs_implicit
eq_(m.kwargs, {'type':'dbm'})
AttributeError: 'MockCacheImpl' object has no attribute 'kwargs'
======================================================================
ERROR: test_fileargs_lookup (test.test_cache.CacheTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python-mako/test/test_cache.py", line 412, in test_fileargs_lookup
eq_(m.kwargs, {'dir':module_base, 'type':'file'})
AttributeError: 'MockCacheImpl' object has no attribute 'kwargs'
======================================================================
ERROR: test_fileargs_pagetag (test.test_cache.CacheTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python-mako/test/test_cache.py", line 363, in test_fileargs_pagetag
eq_(m.kwargs, {'dir':module_base, 'type':'dbm'})
AttributeError: 'MockCacheImpl' object has no attribute 'kwargs'
======================================================================
FAIL: test_bytestring_passthru (test.test_template.EncodingTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/python-mako/test/__init__.py", line 95, in maybe
return fn(*args, **kw)
File "/opt/python-mako/test/test_template.py", line 389, in test_bytestring_passthru
self.assertRaises(UnicodeDecodeError, template.render_unicode, name='毛泽东')
AssertionError: UnicodeDecodeError not raised
----------------------------------------------------------------------
Ran 389 tests in 10.227s
FAILED (SKIP=4, errors=3, failures=1)