TestHP: Pass name to print function

This commit is contained in:
Worros 2010-08-19 19:31:23 +08:00
parent 1236460e09
commit 3c5908224c

View File

@ -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()