summaryrefslogtreecommitdiff
path: root/git/test/lib/helper.py
diff options
context:
space:
mode:
authorHugo <hugovk@users.noreply.github.com>2018-03-18 12:06:10 +0200
committerHugo <hugovk@users.noreply.github.com>2018-03-18 22:26:04 +0200
commit929f3e1e1b664ed8cdef90a40c96804edfd08d59 (patch)
tree805c06bde21a6c4b3d9defe775527a3773bef3b9 /git/test/lib/helper.py
parent190c04569bd2a29597065222cdcc322ec4f2b374 (diff)
downloadgitpython-929f3e1e1b664ed8cdef90a40c96804edfd08d59.tar.gz
Drop support for EOL Python 2.6
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):