Skip to content
Snippets Groups Projects
Commit 104fe381 authored by Gael Varoquaux's avatar Gael Varoquaux
Browse files

BUG: fix assert_greater/assert_lower

Pyflakes would have prevented this bug :)
parent e629d08c
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ try:
except ImportError:
def assert_less(a, b, msg=None):
message = "%r is not lower than %r" % (a, b)
if details is not None:
message += ": " + details
if msg is not None:
message += ": " + msg
assert a < b, message
try:
......@@ -36,8 +36,8 @@ try:
except ImportError:
def assert_greater(a, b, msg=None):
message = "%r is not lower than %r" % (a, b)
if details is not None:
message += ": " + details
if msg is not None:
message += ": " + msg
assert a < b, message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment