Commit 2743fb0a authored by Stefan Behnel's avatar Stefan Behnel

fix tests after changing error output

parent d81e97e9
......@@ -116,13 +116,13 @@ def parse_directive_value(name, value, relaxed_bool=False):
value = value.lower()
if value in ("true", "yes"): return True
elif value in ("false", "no"): return False
raise ValueError("%s directive must be set to True or False, got %r" % (
raise ValueError("%s directive must be set to True or False, got '%s'" % (
name, orig_value))
elif type is int:
try:
return int(value)
except ValueError:
raise ValueError("%s directive must be set to an integer, got %r" % (
raise ValueError("%s directive must be set to an integer, got '%s'" % (
name, orig_value))
elif type is str:
return str(value)
......
......@@ -9,7 +9,6 @@ print 3
# cython: boundscheck = true
_ERRORS = u"""
3:0: boundscheck directive must be set to True or False
4:0: boundscheck directive must be set to True or False
3:0: boundscheck directive must be set to True or False, got 'true'
4:0: boundscheck directive must be set to True or False, got '9'
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment