From 3ce4ef98bc60cd0c0a6517e4fc10eb794806c8c8 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Nov 2009 09:23:38 -0500 Subject: A more helpful error message when gold files don't match. --- test/test_farm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_farm.py') diff --git a/test/test_farm.py b/test/test_farm.py index bc1d7a3..78b9354 100644 --- a/test/test_farm.py +++ b/test/test_farm.py @@ -226,7 +226,10 @@ class FarmTestCase(object): # print "%d %d" % (big, little) # print "Left: ---\n%s\n-----\n%s" % (left, right) wrong_size.append(f) - assert not wrong_size, "File sizes differ: %s" % wrong_size + assert not wrong_size, ( + "File sizes differ between %s and %s: %s" % ( + dir1, dir2, wrong_size + )) else: # filecmp only compares in binary mode, but we want text mode. So # look through the list of different files, and compare them -- cgit v1.2.1