Skip to content
Myr

Add missing assertIn, assertNotIn methods on 2.6

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

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent 62e7275 · Browse files · 1 file+7 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+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:flask/testsuite/__init__.py+7 added
152 unmodified lines
153154 def assert_not_in(self, x, y):155 self.assertNotIn(x, y)156157 if sys.version_info[:2] == (2, 6):158 def assertIn(self, x, y):159 assert x in y, "%r unexpectedly not in %r" % (x, y)160161 def assertNotIn(self, x, y):162 assert x not in y, "%r unexpectedly in %r" % (x, y)163164165class _ExceptionCatcher(object):166167 def __init__(self, test_case, exc_type):168 self.test_case = test_case
75 unmodified lines