Fix tests for Python 2.5

This commit is contained in:
Vincent Jacques
2013-03-22 00:29:44 +01:00
parent 7a9c0b916c
commit f962bc71fe
+6 -1
View File
@@ -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: