Skip to content
Myr

Add assertIsInstance to FlaskTestCase on 2.6

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This fixes an error in ConfigTestCase.test_custom_config_class

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent 3f8e29b · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:flask/testsuite/__init__.py+3 added
165 unmodified lines
166167 def assertNotIn(self, x, y):168 assert x not in y, "%r unexpectedly in %r" % (x, y)169170 def assertIsInstance(self, x, y):171 assert isinstance(x, y), "not isinstance(%r, %r)" % (x, y)172173174class _ExceptionCatcher(object):175176 def __init__(self, test_case, exc_type):177 self.test_case = test_case
75 unmodified lines