summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-07 05:56:27 -0600
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-02-08 10:55:50 +0800
commit6aa78cd3b969ede76a1a6e660962e898421d4ed8 (patch)
tree5eb2363fb7d727770da0b00c6a3fc081470cbd06 /git/test/test_git.py
parente633cc009fe3dc8d29503b0d14532dc5e8c44cce (diff)
downloadgitpython-6aa78cd3b969ede76a1a6e660962e898421d4ed8.tar.gz
Remove checks for Python 2 and/or 3
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index 357d9edb..e6bc19d1 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -17,7 +17,7 @@ from git import (
Repo,
cmd
)
-from git.compat import PY3, is_darwin
+from git.compat import is_darwin
from git.test.lib import (
TestBase,
patch,
@@ -61,18 +61,12 @@ class TestGit(TestBase):
def test_call_unpack_args_unicode(self):
args = Git._Git__unpack_args(u'Unicode€™')
- if PY3:
- mangled_value = 'Unicode\u20ac\u2122'
- else:
- mangled_value = 'Unicode\xe2\x82\xac\xe2\x84\xa2'
+ mangled_value = 'Unicode\u20ac\u2122'
assert_equal(args, [mangled_value])
def test_call_unpack_args(self):
args = Git._Git__unpack_args(['git', 'log', '--', u'Unicode€™'])
- if PY3:
- mangled_value = 'Unicode\u20ac\u2122'
- else:
- mangled_value = 'Unicode\xe2\x82\xac\xe2\x84\xa2'
+ mangled_value = 'Unicode\u20ac\u2122'
assert_equal(args, ['git', 'log', '--', mangled_value])
@raises(GitCommandError)