From: W. Trevor King Date: Fri, 20 Jul 2012 20:03:28 +0000 (-0400) Subject: Use LOG to print helpful messages in test.py. X-Git-Tag: v0.2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a09fdfcb9bfc94879f4ad19cd633120ff1e0890;p=igor.git Use LOG to print helpful messages in test.py. --- diff --git a/test/test.py b/test/test.py index 1567ff3..4a76476 100644 --- a/test/test.py +++ b/test/test.py @@ -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):