Use LOG to print helpful messages in test.py.
authorW. Trevor King <wking@tremily.us>
Fri, 20 Jul 2012 20:03:28 +0000 (16:03 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 20 Jul 2012 20:03:28 +0000 (16:03 -0400)
test/test.py

index 1567ff31e84297fc310861180bb1b9786b011259..4a76476e15e37df4013aa2d45de6f9d8d5090cde 100644 (file)
@@ -1419,8 +1419,8 @@ filesystem:
 
 import os.path
 from pprint import pformat
-import sys
 
+from igor import LOG
 from igor.binarywave import load as loadibw
 from igor.packed import load as loadpxp
 from igor.record.base import TextRecord
@@ -1433,13 +1433,13 @@ _this_dir = os.path.dirname(__file__)
 _data_dir = os.path.join(_this_dir, 'data')
 
 def dumpibw(filename):
-    sys.stderr.write('Testing {}\n'.format(filename))
+    LOG.info('Testing {}\n'.format(filename))
     path = os.path.join(_data_dir, filename)
     data = loadibw(path)
     pprint(data)
 
 def dumppxp(filename):
-    sys.stderr.write('Testing {}\n'.format(filename))
+    LOG.info('Testing {}\n'.format(filename))
     path = os.path.join(_data_dir, filename)
     records,filesystem = loadpxp(path)
     for i,record in enumerate(records):