Browse Source

Cleaned up test case for issue #414.

pull/415/head
Dave Shawley 13 years ago
parent
commit
8d7ca29a35
  1. 4
      flask/testsuite/config.py

4
flask/testsuite/config.py

@ -82,8 +82,8 @@ class ConfigTestCase(FlaskTestCase):
'file (No such file or directory):'))
self.assert_(msg.endswith("missing.cfg'"))
else:
self.assert_(0, 'expected config')
self.assert_(not app.config.from_envvar('FOO_SETTINGS', silent=True))
self.fail('expected IOError')
self.assertFalse(app.config.from_envvar('FOO_SETTINGS', silent=True))
finally:
os.environ = env

Loading…
Cancel
Save