From 6aa78cd3b969ede76a1a6e660962e898421d4ed8 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 7 Feb 2020 05:56:27 -0600 Subject: Remove checks for Python 2 and/or 3 --- git/test/test_git.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'git/test/test_git.py') 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) -- cgit v1.2.1