Skip to content
Myr

Test passes.

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

Added test for silent flag; added import of errno so it passed.

authored by Aaron Kavlie · committed by Aaron Kavlie · parent 5cc40f4 · Browse files · 2 files+3 added−1 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−1 removed

  • tests:+2 added−1 removed
  • other:+1 added−0 removed

2 files+3 added−1 removed

modified:flask/config.py+1 added
12 unmodified lines
1314import imp15import os16import sys17import errno1819from werkzeug import import_string2021
142 unmodified lines
modified:tests/flask_tests.py+2 added-1 removed
1308 unmodified lines
1309 except RuntimeError, e:1310 assert "'FOO_SETTINGS' is not set" in str(e)1311 else:1312 assert 0, 'expected exception'1313 not app.config.from_envvar('FOO_SETTINGS', silent=True)1313 assert not app.config.from_envvar('FOO_SETTINGS', silent=True)13141315 os.environ = {'FOO_SETTINGS': 'flask_tests.py'}1316 assert app.config.from_envvar('FOO_SETTINGS')1317 self.common_object_test(app)
10 unmodified lines
1328 'file (No such file or directory):')1329 assert msg.endswith("missing.cfg'")1330 else:1331 assert 0, 'expected config'1332 assert not app.config.from_pyfile('missing.cfg', silent=True)133313341335class SubdomainTestCase(unittest.TestCase):1336
165 unmodified lines