forked from orbit-oss/flask
Cleaned up test case for issue #414.
This commit is contained in:
parent
76773e1d0a
commit
8d7ca29a35
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ class ConfigTestCase(FlaskTestCase):
|
||||||
'file (No such file or directory):'))
|
'file (No such file or directory):'))
|
||||||
self.assert_(msg.endswith("missing.cfg'"))
|
self.assert_(msg.endswith("missing.cfg'"))
|
||||||
else:
|
else:
|
||||||
self.assert_(0, 'expected config')
|
self.fail('expected IOError')
|
||||||
self.assert_(not app.config.from_envvar('FOO_SETTINGS', silent=True))
|
self.assertFalse(app.config.from_envvar('FOO_SETTINGS', silent=True))
|
||||||
finally:
|
finally:
|
||||||
os.environ = env
|
os.environ = env
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue