Skip to content

Commit 52f9369

Browse files
Harmon758Byron
authored andcommitted
Remove check for Python 2.7
1 parent d3fabed commit 52f9369

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: git/test/lib/helper.py

-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import io
1212
import logging
1313
import os
14-
import sys
1514
import tempfile
1615
import textwrap
1716
import time
@@ -344,11 +343,6 @@ class TestBase(TestCase):
344343
of the project history ( to assure tests don't fail for others ).
345344
"""
346345

347-
# On py3, unittest has assertRaisesRegex
348-
# On py27, we use unittest, which names it differently:
349-
if sys.version_info[0:2] == (2, 7):
350-
assertRaisesRegex = TestCase.assertRaisesRegexp
351-
352346
def _small_repo_url(self):
353347
""":return" a path to a small, clonable repository"""
354348
from git.cmd import Git

0 commit comments

Comments
 (0)