summaryrefslogtreecommitdiff
path: root/test/test_functional.py
diff options
context:
space:
mode:
authorgoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-05 01:22:15 +0000
committergoodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-05 01:22:15 +0000
commitfe4b262bb4706aa8bf7a7ea2567df93d1452fa58 (patch)
treefaa7a641193d42b7d50751cdf97a740660767e20 /test/test_functional.py
parent6bb61d96a0c98bbd68135a3a79284087c9f6e9b3 (diff)
downloaddocutils-fe4b262bb4706aa8bf7a7ea2567df93d1452fa58.tar.gz
improved usefulness of test output
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2693 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test/test_functional.py')
-rwxr-xr-xtest/test_functional.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test_functional.py b/test/test_functional.py
index aa55b0651..4cacfb8f4 100755
--- a/test/test_functional.py
+++ b/test/test_functional.py
@@ -113,8 +113,15 @@ class FunctionalTestCase(DocutilsTestSupport.CustomTestCase):
self.assert_(os.access(expected_path, os.R_OK),\
'Cannot find expected output at\n' + expected_path)
expected = open(expected_path).read()
- diff = ('Please compare the expected and actual output files:\n'
- 'diff %s %s\n' % (expected_path, params['destination_path']))
+ diff = ('The expected and actual output differs.\n'
+ 'Please compare the expected and actual output files:\n'
+ ' diff %s %s\n'
+ 'If the actual output is correct, please replace the\n'
+ 'expected output and check it in to CVS:\n'
+ ' mv %s %s\n'
+ ' cvs commit -m "<comment>" %s'
+ % (expected_path, params['destination_path'],
+ params['destination_path'], expected_path, expected_path))
try:
self.assertEquals(output, expected, diff)
except AssertionError: