diff options
| author | Harmon <Harmon758@gmail.com> | 2020-02-07 05:56:27 -0600 | 
|---|---|---|
| committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-02-08 10:55:50 +0800 | 
| commit | 6aa78cd3b969ede76a1a6e660962e898421d4ed8 (patch) | |
| tree | 5eb2363fb7d727770da0b00c6a3fc081470cbd06 /git/test/test_git.py | |
| parent | e633cc009fe3dc8d29503b0d14532dc5e8c44cce (diff) | |
| download | gitpython-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.py | 12 | 
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)  | 
