зеркало из https://github.com/github/putty.git
testcrypt: fix malformatted error message.
I managed to get two format parameters reversed in the message when a return type is unhandled.
This commit is contained in:
Родитель
c1a13c97da
Коммит
9cf2db5f94
|
@ -182,7 +182,7 @@ def make_retval(rettype, word, unpack_strings):
|
||||||
assert word == b"true" or word == b"false"
|
assert word == b"true" or word == b"false"
|
||||||
return word == b"true"
|
return word == b"true"
|
||||||
raise TypeError("Can't deal with return value {!r} of type {!r}"
|
raise TypeError("Can't deal with return value {!r} of type {!r}"
|
||||||
.format(rettype, word))
|
.format(word, rettype))
|
||||||
|
|
||||||
def make_retvals(rettypes, retwords, unpack_strings=True):
|
def make_retvals(rettypes, retwords, unpack_strings=True):
|
||||||
assert len(rettypes) == len(retwords) # FIXME: better exception
|
assert len(rettypes) == len(retwords) # FIXME: better exception
|
||||||
|
|
Загрузка…
Ссылка в новой задаче