From 1319d28abb4e059083c7bbf896d9412c74c4d351 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(-) diff --git a/test/test_farm.py b/test/test_farm.py index bc1d7a30..78b93541 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