mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-09-28 12:26:29 -05:00
Adding a real check for unittest2 features.
original-commit-id: 8dc750b1e4c3882edb42f88c72a148275c9355b8
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user