Skip to content
Myr

Make BetterLoader() have a better api :)

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

authored by Armin Ronacher · committed by Armin Ronacher · parent a082a5e · Browse files · 2 files+5 added−3 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+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:flask/testsuite/__init__.py+1 added-2 removed
155 unmodified lines
156 testname.startswith(name + '.'):157 all_tests.append(testcase)158159 if not all_tests:160 print >> sys.stderr, 'Error: could not find test case for "%s"' % name161 sys.exit(1)160 raise LookupError('could not find test case for "%s"' % name)161162 if len(all_tests) == 1:163 return all_tests[0]164 rv = unittest.TestSuite()
11 unmodified lines
modified:run-tests.py+4 added-1 removed
1import unittest2from flask.testsuite import BetterLoader3try:3unittest.main(testLoader=BetterLoader(), defaultTest='suite')4 unittest.main(testLoader=BetterLoader(), defaultTest='suite')5except Exception, e:6 print 'Error: %s' % e