diff options
author | Hugo <hugovk@users.noreply.github.com> | 2018-03-18 12:06:10 +0200 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2018-03-18 22:26:04 +0200 |
commit | 929f3e1e1b664ed8cdef90a40c96804edfd08d59 (patch) | |
tree | 805c06bde21a6c4b3d9defe775527a3773bef3b9 /git/test/lib/helper.py | |
parent | 190c04569bd2a29597065222cdcc322ec4f2b374 (diff) | |
download | gitpython-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.py | 7 |
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): |