From: W. Trevor King Date: Wed, 11 Aug 2010 17:19:05 +0000 (-0400) Subject: Print tutorial init message to stderr so it won't interfere with doctests. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=111afe6d4ab348fecb0ca5bce61a49274964e07f;p=hooke.git Print tutorial init message to stderr so it won't interfere with doctests. e.g. nosetests --with-doctest --doctest-tests test/curve_info.py --- diff --git a/hooke/plugin/tutorial.py b/hooke/plugin/tutorial.py index 08b48f9..26ef38e 100644 --- a/hooke/plugin/tutorial.py +++ b/hooke/plugin/tutorial.py @@ -23,6 +23,7 @@ Hooke plugin, including description of main Hooke internals. import logging import StringIO +import sys from numpy import arange @@ -65,7 +66,7 @@ class TutorialPlugin (Plugin): # the plugin is loaded, this function is executed. If there # is something you need to do when Hooke starts, code it in # this function. - print 'I am the Tutorial plugin initialization!' + print >> sys.stderr, 'I am the Tutorial plugin initialization!' # This super() call similar to the old-style # Plugin.__init__