forked from orbit-oss/flask
Fixed tests for python 3
This commit is contained in:
parent
c23a63a185
commit
1a2dc6f205
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ except ImportError:
|
|||
def _called_with_wrong_args(factory, exc_info):
|
||||
exc_type, exc_value, tb = exc_info
|
||||
return exc_type is TypeError and \
|
||||
str(exc_value).startswith('%s() takes' % factory.__name__)
|
||||
str(exc_value).startswith((
|
||||
'%s() takes' % factory.__name__,
|
||||
'%s() missing' % factory.__name__))
|
||||
|
||||
|
||||
class NoAppException(click.UsageError):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue