Browse Source

Fixed tests for python 3

pull/2530/head
Armin Ronacher 7 years ago
parent
commit
1a2dc6f205
  1. 4
      flask/cli.py

4
flask/cli.py

@ -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…
Cancel
Save