From 6a09fdfcb9bfc94879f4ad19cd633120ff1e0890 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Fri, 20 Jul 2012 16:03:28 -0400 Subject: [PATCH] Use LOG to print helpful messages in test.py. --- test/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.26.2