We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1527b57 commitc8cf69bCopy full SHA for c8cf69b
git/test/test_git.py
@@ -17,6 +17,8 @@
17
fromgitimport (Git,
18
GitCommandError)
19
20
+fromgit.compatimportPY3
21
+
22
23
classTestGit(TestBase):
24
@@ -34,11 +36,19 @@ def test_call_process_calls_execute(self, git):
34
36
35
37
deftest_call_unpack_args_unicode(self):
38
args=Git._Git__unpack_args(u'Unicode€™')
-assert_equal(args, ['Unicode\u20ac\u2122'])
39
+ifPY3:
40
+mangled_value='Unicode\u20ac\u2122'
41
+else:
42
+mangled_value='Unicode\xe2\x82\xac\xe2\x84\xa2'
43
+assert_equal(args, [mangled_value])
44
45
deftest_call_unpack_args(self):
46
args=Git._Git__unpack_args(['git','log','--',u'Unicode€™'])
-assert_equal(args, ['git','log','--','Unicode\u20ac\u2122'])
47
48
49
50
51
+assert_equal(args, ['git','log','--',mangled_value])
52
53
@raises(GitCommandError)
54
deftest_it_raises_errors(self):