Modify ↓
Opened 19 years ago
Closed 19 years ago
#4744 closed defect (fixed)
trac/mimevew/tests/patch.py test result conflicts
| Reported by: | Christian Boos | Owned by: | Matthew Good |
|---|---|---|---|
| Priority: | high | Milestone: | 0.11 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | mimeview |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Looks like mgood and me are having different results for the patch tests…
With Trac r4759:
$ PYTHONPATH=. python trac/mimeview/tests/patch.py
FFF
======================================================================
FAIL: test_no_newline_in_base (__main__.PatchRendererTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "trac/mimeview/tests/patch.py", line 87, in test_no_newline_in_base
self._test('no_newline_in_base', result)
File "trac/mimeview/tests/patch.py", line 51, in _test
self.assertEquals(exp, res)
AssertionError: ' <h2 id="file0">' != ' <h2>'
======================================================================
FAIL: test_no_newline_in_changed (__main__.PatchRendererTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "trac/mimeview/tests/patch.py", line 102, in test_no_newline_in_changed
self._test('no_newline_in_changed', result)
File "trac/mimeview/tests/patch.py", line 51, in _test
self.assertEquals(exp, res)
AssertionError: ' <h2 id="file0">' != ' <h2>'
======================================================================
FAIL: test_simple (__main__.PatchRendererTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "trac/mimeview/tests/patch.py", line 72, in test_simple
self._test('simple', result)
File "trac/mimeview/tests/patch.py", line 51, in _test
self.assertEquals(exp, res)
AssertionError: ' <h2 id="file0">' != ' <h2>'
----------------------------------------------------------------------
Ran 3 tests in 3.094s
FAILED (failures=3)
mgood, were you using up-to-date templates? In particular, check your source:trunk/templates/diff_div.html
Attachments (0)
Note:
See TracTickets
for help on using tickets.



Doh, sorry. I ended up with a set of globally installed templates overriding those from my working copy. This is one of the reasons we need to make the setuptools switch.