mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
testcrypt: fix malformatted error message.
I managed to get two format parameters reversed in the message when a
return type is unhandled.
(cherry picked from commit 9cf2db5f94
)
This commit is contained in:
parent
9407aef704
commit
6f1f04839b
@ -182,7 +182,7 @@ def make_retval(rettype, word, unpack_strings):
|
||||
assert word == b"true" or word == b"false"
|
||||
return word == b"true"
|
||||
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):
|
||||
assert len(rettypes) == len(retwords) # FIXME: better exception
|
||||
|
Loading…
Reference in New Issue
Block a user