From 657fd40f9ee692a817ec4614cd0d6cb0539ffabf Mon Sep 17 00:00:00 2001 From: Lars Kellogg-Stedman Date: Sat, 4 Mar 2017 17:07:16 -0500 Subject: net: do not raise exception for > 3 nameservers log a warning rather than raising ValueError if we see more than three nameserver addresses. LP: #1670052 --- tests/unittests/test_distros/test_resolv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unittests/test_distros/test_resolv.py b/tests/unittests/test_distros/test_resolv.py index 6b535a95..c9d03475 100644 --- a/tests/unittests/test_distros/test_resolv.py +++ b/tests/unittests/test_distros/test_resolv.py @@ -46,7 +46,7 @@ class TestResolvHelper(TestCase): self.assertNotIn('10.3', rp.nameservers) self.assertEqual(len(rp.nameservers), 3) rp.add_nameserver('10.2') - self.assertRaises(ValueError, rp.add_nameserver, '10.3') + rp.add_nameserver('10.3') self.assertNotIn('10.3', rp.nameservers) def test_search_domains(self): -- cgit v1.2.3