summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Schlyter <jakob@kirei.se>2022-02-19 15:20:32 +0100
committerJakob Schlyter <jakob@kirei.se>2022-02-19 15:20:32 +0100
commitc5bcc140ff9496cbe6733fdc65dd034e074b1b13 (patch)
tree7d56eb6ae6a1ed2cd613b425377cd29a0b02c33e /tests
parentc9f4be6cc915dc7e83c610409bafb58f05a9d3c6 (diff)
downloaddnspython-c5bcc140ff9496cbe6733fdc65dd034e074b1b13.tar.gz
raise NoSOA if there is no SOA record
Diffstat (limited to 'tests')
-rw-r--r--tests/test_zone.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_zone.py b/tests/test_zone.py
index 8bdb49f..6ef669b 100644
--- a/tests/test_zone.py
+++ b/tests/test_zone.py
@@ -1071,7 +1071,7 @@ class VersionedZoneTestCase(unittest.TestCase):
def testGetSoaEmptyZone(self):
z = dns.zone.Zone('example.')
- with self.assertRaises(KeyError):
+ with self.assertRaises(dns.zone.NoSOA):
soa = z.get_soa()