You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Adding a real check for unittest2 features.
This commit is contained in:
@@ -16,6 +16,11 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
import unittest
|
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"):
|
if not hasattr(json, "dumps"):
|
||||||
json.dumps = json.write
|
json.dumps = json.write
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user