From 6667c75f37efd8aa7e82c5727f8007e7dacc90ba Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 27 Feb 2013 22:09:05 -0500 Subject: [PATCH] trying to fix RuntimeError tests --- pecan/tests/test_conf.py | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/pecan/tests/test_conf.py b/pecan/tests/test_conf.py index 2e36cf6..b3d122d 100644 --- a/pecan/tests/test_conf.py +++ b/pecan/tests/test_conf.py @@ -110,26 +110,22 @@ class TestConf(TestCase): from pecan import configuration path = ('doesnotexist.py',) configuration.Config({}) - self.assertRaises(RuntimeError, - configuration.conf_from_file, - os.path.join( - __here__, - 'config_fixtures', - *path) - ) + self.assertRaises( + RuntimeError, + configuration.conf_from_file, + os.path.join(__here__, 'config_fixtures', *path) + ) def test_config_missing_file_on_path(self): from pecan import configuration path = ('bad', 'bad', 'doesnotexist.py',) configuration.Config({}) - self.assertRaises(RuntimeError, - configuration.conf_from_file, - os.path.join( - __here__, - 'config_fixtures', - *path) - ) + self.assertRaises( + RuntimeError, + configuration.conf_from_file, + os.path.join(__here__, 'config_fixtures', *path) + ) def test_config_with_syntax_error(self): from pecan import configuration