mirror of https://github.com/pret/pokecrystal.git
Adding a real check for unittest2 features.
This commit is contained in:
parent
4de0c12b43
commit
8dc750b1e4
|
@ -16,6 +16,11 @@ try:
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue