Skip to content
Myr

python-modernize automated changes: misc. minor stuff

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

authored by Thomas Waldmann · committed by Thomas Waldmann · parent 1b753cb · Browse files · 2 files+3 added−2 removed
This commit

State

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

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:flask/testsuite/__init__.py+2 added-1 removed
8 unmodified lines
9 :copyright: (c) 2011 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from __future__ import print_function14from __future__ import with_statement1516import os17import sys
203 unmodified lines
221 """Runs the testsuite as command line application."""222 try:223 unittest.main(testLoader=BetterLoader(), defaultTest='suite')224 except Exception, e:224 print 'Error: %s' % e225 print('Error: %s' % e)
modified:flask/testsuite/config.py+1 added-1 removed
111 unmodified lines
112113 def __getattr__(self, name):114 if name in ('archive', 'get_filename'):115 msg = 'Mocking a loader which does not have `%s.`' % name116 raise AttributeError, msg116 raise AttributeError(msg)117 return getattr(self.loader, name)118119120@contextmanager
180 unmodified lines