[Python-checkins] distutils2: Make unittest2 import error go to stderr again (2.4 to 3.x-compatible)

tarek.ziade python-checkins at python.org
Sat Jul 3 16:19:06 CEST 2010


tarek.ziade pushed 216e2cb8d125 to distutils2:

http://hg.python.org/distutils2/rev/216e2cb8d125
changeset:   248:216e2cb8d125
user:        ?ric Araujo <merwok at netwok.org>
date:        Wed Jun 30 18:47:33 2010 +0200
summary:     Make unittest2 import error go to stderr again (2.4 to 3.x-compatible)
files:       src/runtests.py

diff --git a/src/runtests.py b/src/runtests.py
--- a/src/runtests.py
+++ b/src/runtests.py
@@ -28,7 +28,7 @@
     try:
         from distutils2.tests.support import unittest
     except ImportError:
-        print('Error: You have to install unittest2')
+        sys.stderr.write('Error: You have to install unittest2')
         sys.exit(1)
 
     sys.exit(test_main())

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list