summaryrefslogtreecommitdiff
path: root/git/test/lib/helper.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-07 06:35:26 -0600
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-08 10:55:50 +0800
commit52f9369ec96dbd7db1ca903be98aeb5da73a6087 (patch)
treee6dbb7dc432484f57a906b23d93599aaa0ebf628 /git/test/lib/helper.py
parentd3fabed8d0d237b4d97b695f0dff1ba4f6508e4c (diff)
downloadgitpython-52f9369ec96dbd7db1ca903be98aeb5da73a6087.tar.gz
Remove check for Python 2.7
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r--git/test/lib/helper.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py
index d7a4c436..9418a9f8 100644
--- a/git/test/lib/helper.py
+++ b/git/test/lib/helper.py
@@ -11,7 +11,6 @@ import gc
import io
import logging
import os
-import sys
import tempfile
import textwrap
import time
@@ -344,11 +343,6 @@ class TestBase(TestCase):
of the project history ( to assure tests don't fail for others ).
"""
- # On py3, unittest has assertRaisesRegex
- # On py27, we use unittest, which names it differently:
- if sys.version_info[0:2] == (2, 7):
- assertRaisesRegex = TestCase.assertRaisesRegexp
-
def _small_repo_url(self):
""":return" a path to a small, clonable repository"""
from git.cmd import Git