瀏覽代碼

added extended output to debug failing windows python 3.5 build

prozessorkern 4 年之前
父節點
當前提交
6d8ba1709f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      metrixpp/tests/common.py

+ 2 - 1
metrixpp/tests/common.py

@@ -131,7 +131,7 @@ class ToolRunner(object):
             textDict = text
             goldDict = gold_text
         
-        if isinstance(textDict, dict) and isinstance(goldDict, dict):    
+        if isinstance(textDict, dict) and isinstance(goldDict, dict):
             result = (textDict == goldDict)
         else:
             gold_to_compare = gold_text
@@ -159,6 +159,7 @@ class ToolRunner(object):
             f = open(diff_file, 'w')
             f.write(diff_text)
             f.close()
+            print(diff_text)
         else:
             if os.path.exists(real_file):
                 os.unlink(real_file)