Skip to content
Myr

Fixed a bug in the testsuite that caused problems when dots where in directory names

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 d5cd4f8 · Browse files · 2 files+3 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+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:flask/testsuite/config.py+2 added-2 removed
27 unmodified lines
28 self.assert_('ConfigTestCase' not in app.config)2930 def test_config_from_file(self):31 app = flask.Flask(__name__)32 app.config.from_pyfile(__file__.rsplit('.')[0] + '.py')32 app.config.from_pyfile(__file__.rsplit('.', 1)[0] + '.py')33 self.common_object_test(app)3435 def test_config_from_object(self):36 app = flask.Flask(__name__)
21 unmodified lines
58 else:59 self.assert_(0, 'expected exception')60 self.assert_(not app.config.from_envvar('FOO_SETTINGS', silent=True))6162 os.environ = {'FOO_SETTINGS': __file__.rsplit('.')[0] + '.py'}62 os.environ = {'FOO_SETTINGS': __file__.rsplit('.', 1)[0] + '.py'}63 self.assert_(app.config.from_envvar('FOO_SETTINGS'))64 self.common_object_test(app)65 finally:66 os.environ = env
111 unmodified lines
modified:flask/testsuite/helpers.py+1 added-1 removed
229 unmodified lines
230 with catch_stderr() as err:231 c.get('/')232 out = err.getvalue()233 self.assert_('WARNING in helpers [' in out)234 self.assert_(os.path.basename(__file__.rsplit('.')[0] + '.py') in out)234 self.assert_(os.path.basename(__file__.rsplit('.', 1)[0] + '.py') in out)235 self.assert_('the standard library is dead' in out)236 self.assert_('this is a debug statement' in out)237238 with catch_stderr() as err:
57 unmodified lines