ERROR koderevr browser tests test_views TestCommit test_nonascii_filen

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
======================================================================
ERROR: koderevr.browser.tests.test_views.TestCommit.test_nonascii_filename_with_spaces
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/nose-0.11.0-py2.6.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/work/workspace/koderevr/koderevr/browser/tests/test_views.py", line 74, in test_nonascii_filename_with_spaces
commit = commit))
File "/usr/lib/python2.6/dist-packages/django/contrib/auth/decorators.py", line 78, in __call__
return self.view_func(request, *args, **kwargs)
File "/work/workspace/koderevr/koderevr/browser/views.py", line 56, in commit
'diffs': git_commit.diffs,
File "/work/workspace/koderevr/lib/git/lazy.py", line 14, in __getattribute__
val = object.__getattribute__(self, attr)
File "/work/workspace/koderevr/lib/git/commit.py", line 222, in diffs
return self.diff(self.repo, self.parents[0].id, self.id)
File "/work/workspace/koderevr/lib/git/commit.py", line 208, in diff
return diff.Diff.list_from_string(repo, text)
File "/work/workspace/koderevr/lib/git/diff.py", line 63, in list_from_string
a_commit, b_commit, b_mode = header.groups()
AttributeError: 'NoneType' object has no attribute 'groups'