Commits

C Nelson committed 6274203

Adding a real check for unittest2 features.

  • Participants
  • Parent commits aa53503

Comments (0)

Files changed (1)

extras/crystal.py

 except ImportError:
     import unittest
 
+# 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.exit(1)
+
 if not hasattr(json, "dumps"):
     json.dumps = json.write