Fixed tests for python 3

This commit is contained in:
Armin Ronacher 2017-11-25 00:18:10 +01:00
parent c23a63a185
commit 1a2dc6f205

View file

@ -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):