From 3c5908224c2b1388815d90f8ca4ea4d037762743 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 19 Aug 2010 19:31:23 +0800 Subject: [PATCH] TestHP: Pass name to print function --- pyfpdb/TestHandsPlayers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/TestHandsPlayers.py b/pyfpdb/TestHandsPlayers.py index b6596933..a49cd88b 100644 --- a/pyfpdb/TestHandsPlayers.py +++ b/pyfpdb/TestHandsPlayers.py @@ -9,10 +9,11 @@ import Database import SQL import fpdb_import -def error_report( filename, hand, stat, ghash, testhash): +def error_report( filename, hand, stat, ghash, testhash, player): print "Regression Test Error:" print "\tFile: %s" % filename print "\tStat: %s" % stat + print "\tPlayer: %s" % player def compare(leaf, importer): filename = leaf @@ -50,7 +51,7 @@ def compare(leaf, importer): pass else: # Stats don't match - Doh! - error_report(filename, hand, stat, ghash, testhash) + error_report(filename, hand, stat, ghash, testhash, p) importer.clearFileList()