From 111afe6d4ab348fecb0ca5bce61a49274964e07f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 11 Aug 2010 13:19:05 -0400 Subject: [PATCH] Print tutorial init message to stderr so it won't interfere with doctests. e.g. nosetests --with-doctest --doctest-tests test/curve_info.py --- hooke/plugin/tutorial.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__ -- 2.26.2