From 4944bc286970da1ca59b7d57509e51b6817c60c2 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 12 Nov 2012 14:29:14 -0500 Subject: test_handler_yum_add_repo: fix broken test --- tests/unittests/test_handler/test_handler_yum_add_repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unittests/test_handler/test_handler_yum_add_repo.py b/tests/unittests/test_handler/test_handler_yum_add_repo.py index c7fcddc4..8df592f9 100644 --- a/tests/unittests/test_handler/test_handler_yum_add_repo.py +++ b/tests/unittests/test_handler/test_handler_yum_add_repo.py @@ -35,8 +35,8 @@ class TestConfig(helpers.FilesystemMockingTestCase): } self.patchUtils(self.tmp) cc_yum_add_repo.handle('yum_add_repo', cfg, None, LOG, []) - with self.assertRaises(IOError): - util.load_file("/etc/yum.repos.d/epel_testing.repo") + self.assertRaises(IOError, util.load_file, + "/etc/yum.repos.d/epel_testing.repo") def test_write_config(self): cfg = { -- cgit v1.2.3