Adding unittest2 for Python <= 2.6

This commit is contained in:
Joshua Marshall 2015-10-05 17:17:16 -07:00
parent ce0c9e2814
commit a39d1f9deb
2 changed files with 11 additions and 1 deletions

View File

@ -1,2 +1,6 @@
coverage==4.0
linecache2==1.0.0
nose==1.3.7
six==1.9.0
traceback2==1.4.0
unittest2==1.1.0

View File

@ -25,7 +25,8 @@ from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCServer
from jsonrpclib.SimpleJSONRPCServer import SimpleJSONRPCRequestHandler
import socket
import tempfile
import unittest
import sys
import os
try:
import json
@ -33,6 +34,11 @@ except ImportError:
import simplejson as json
from threading import Thread
if sys.version_info < (2, 7):
import unittest2 as unittest
else:
import unittest
PORTS = range(8000, 8999)