|
@@ -34,8 +34,6 @@ if sys.version_info < (2, 7):
|
|
else:
|
|
else:
|
|
from unittest import SkipTest, TestCase as _TestCase
|
|
from unittest import SkipTest, TestCase as _TestCase
|
|
|
|
|
|
-from dulwich._compat import PY2
|
|
|
|
-
|
|
|
|
|
|
|
|
def get_safe_env(env=None):
|
|
def get_safe_env(env=None):
|
|
"""Returns the environment "env" (or a copy of "os.environ" by default)
|
|
"""Returns the environment "env" (or a copy of "os.environ" by default)
|
|
@@ -181,7 +179,7 @@ def compat_test_suite():
|
|
def test_suite():
|
|
def test_suite():
|
|
result = unittest.TestSuite()
|
|
result = unittest.TestSuite()
|
|
result.addTests(self_test_suite())
|
|
result.addTests(self_test_suite())
|
|
- if PY2:
|
|
|
|
|
|
+ if sys.version_info[0] == 2:
|
|
result.addTests(tutorial_test_suite())
|
|
result.addTests(tutorial_test_suite())
|
|
from dulwich.tests.compat import test_suite as compat_test_suite
|
|
from dulwich.tests.compat import test_suite as compat_test_suite
|
|
result.addTests(compat_test_suite())
|
|
result.addTests(compat_test_suite())
|