Skip to content

Commit 86f62d9

Browse files
committed
Write errors to stderr
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40502
1 parent f4fc53a commit 86f62d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
if hasattr(etreefull,'TreeBuilder'):
2222
treetypes["ElementTree"]=etreefull.TreeBuilder
2323
else:
24-
print 'module ElementTree not found, skipping etree tests'
24+
sys.stderr.write('module ElementTree not found, skipping etree tests')
2525

2626
#Run the parse error checks
2727
checkParseErrors = False
@@ -30,7 +30,7 @@ def parseTestcase(testString):
3030
testString = testString.split("\n")
3131
try:
3232
if testString[0] != "#data":
33-
print testString
33+
sys.stderr.write(testString)
3434
assert testString[0] == "#data"
3535
except:
3636
raise

0 commit comments

Comments
 (0)