summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-11-12 14:29:14 -0500
committerScott Moser <smoser@ubuntu.com>2012-11-12 14:29:14 -0500
commit4944bc286970da1ca59b7d57509e51b6817c60c2 (patch)
treee031e18686f9108e8e627ee12d50b03ec93e6621 /tests
parentfe68049611e12591a632d5264d9ba1b67b0cfa0d (diff)
downloadvyos-cloud-init-4944bc286970da1ca59b7d57509e51b6817c60c2.tar.gz
vyos-cloud-init-4944bc286970da1ca59b7d57509e51b6817c60c2.zip
test_handler_yum_add_repo: fix broken test
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/test_handler/test_handler_yum_add_repo.py4
1 files changed, 2 insertions, 2 deletions
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 = {