make unittest2 error show up in stderr

This commit is contained in:
Bryan Bishop 2012-06-02 11:42:09 -05:00
parent 376f65a4fd
commit 9144706510

View File

@ -21,7 +21,7 @@ import string
# Check for things we need in unittest.
if not hasattr(unittest.TestCase, 'setUpClass'):
print "The unittest2 module or Python 2.7 is required to run this script."
sys.stderr.write("The unittest2 module or Python 2.7 is required to run this script.")
sys.exit(1)
if not hasattr(json, "dumps"):