Skip to content

Commit

Permalink
Fix test under Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zoni committed Oct 16, 2014
1 parent 6abfe60 commit de566f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ def test_convert_botcmd(self, testbot):
assert pop_message() == "1 kilometer = 1093.61 yard"

push_message("!convert a kilometer to yards")
assert pop_message() == "I don't know how to convert that (could not convert string to float: 'a')."
m = pop_message()
assert (
m == "I don't know how to convert that (could not convert string to float: 'a')."
or m == "I don't know how to convert that (could not convert string to float: a)."
)
push_message("!convert 1 foo to bar")
assert pop_message() == "I don't know how to convert that ('foo' is not defined in the unit registry)."

Expand Down

0 comments on commit de566f7

Please sign in to comment.