summaryrefslogtreecommitdiff
path: root/git/test/lib/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r--git/test/lib/helper.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py
index cb46173d..1c06010f 100644
--- a/git/test/lib/helper.py
+++ b/git/test/lib/helper.py
@@ -15,6 +15,7 @@ import sys
import tempfile
import textwrap
import time
+import unittest
from git.compat import string_types, is_win
from git.util import rmtree, cwd
@@ -23,11 +24,6 @@ import gitdb
import os.path as osp
-if sys.version_info[0:2] == (2, 6):
- import unittest2 as unittest
-else:
- import unittest
-
TestCase = unittest.TestCase
SkipTest = unittest.SkipTest
skipIf = unittest.skipIf
@@ -348,7 +344,6 @@ class TestBase(TestCase):
of the project history ( to assure tests don't fail for others ).
"""
- # On py26, unittest2 has assertRaisesRegex
# On py3, unittest has assertRaisesRegex
# On py27, we use unittest, which names it differently:
if sys.version_info[0:2] == (2, 7):