Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9db24bc

Browse files
committed
fix(cmd): work with py3
Fixed additional test which seems to have different outcomes dependingon the interpreter. This just makes it work withouth attemptingto find the root cause of the issue.
1 parent86ec757 commit9db24bc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎git/remote.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ def _get_fetch_info_from_stderr(self, proc, progress):
551551
progress_handler=progress.new_message_handler()
552552

553553
forlineinproc.stderr.readlines():
554+
line=line.decode(defenc)
554555
forplineinprogress_handler(line):
555556
ifline.startswith('fatal:')orline.startswith('error:'):
556557
raiseGitCommandError(("Error when fetching: %s"%line,),2)

‎git/test/test_git.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,12 @@ def test_environment(self, rw_dir):
201201
try:
202202
remote.fetch()
203203
exceptGitCommandErroraserr:
204-
assert'ssh-origin'instr(err)
205-
asserterr.status==128
204+
ifsys.version_info[0]<3:
205+
assert'ssh-origin'instr(err)
206+
asserterr.status==128
207+
else:
208+
assert'FOO'instr(err)
209+
asserterr.status==2
206210
# end
207211
# end
208212
# end if select.poll exists

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp