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

Commit0de60ab

Browse files
committed
fix(test): deal with py2 and py3
It ain't pretty, but should do the job.Related to#514
1 parentd6b1a92 commit0de60ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎git/test/test_index.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ def add_bad_blob():
145145
## 1st fail on purpose adding into index.
146146
add_bad_blob()
147147
exceptExceptionasex:
148-
assert"cannot convert argument to integer"instr(ex)
148+
msg_py3="required argument is not an integer"
149+
msg_py2="cannot convert argument to integer"
150+
assertmsg_py2instr(ex)ormsg_py3instr(ex)
149151

150152
## 2nd time should not fail due to stray lock file
151153
try:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp