diff --git a/github/tests/Framework.py b/github/tests/Framework.py index c820172d..a70b9e52 100644 --- a/github/tests/Framework.py +++ b/github/tests/Framework.py @@ -18,14 +18,19 @@ import sys import unittest import httplib import traceback -import json import urlparse import github +atLeastPython26 = sys.hexversion >= 0x02060000 atLeastPython3 = sys.hexversion >= 0x03000000 atMostPython32 = sys.hexversion < 0x03030000 +if atLeastPython26: + import json +else: # pragma no cover + import simplejson as json # pragma no cover + def readLine(file): if atLeastPython3: