Fixes #19 Breaking test suite test_support becomes test.support in py3, support backport py2
This commit is contained in:
Родитель
b3777e5244
Коммит
7b7d6756a3
|
@ -1,10 +1,14 @@
|
|||
import unittest
|
||||
import inspect
|
||||
import json
|
||||
import sys
|
||||
|
||||
from test import test_support
|
||||
if sys.version_info < (3,0):
|
||||
from test import test_support
|
||||
else:
|
||||
from test import support as test_support
|
||||
|
||||
import sys, os, os.path
|
||||
import os, os.path
|
||||
rootDirectory = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..')
|
||||
if rootDirectory not in sys.path:
|
||||
sys.path.append(rootDirectory)
|
||||
|
|
Загрузка…
Ссылка в новой задаче