Skip to content

Commit

Permalink
Python 3.12 compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peteeckel committed Dec 21, 2023
1 parent 939bf16 commit 47f9d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox_dns/tests/zone/test_auto_ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_delete_ns_ns_record_removed(self):
def test_delete_soa_ns_exception(self):
nameserver = self.nameservers[0]

with self.assertRaisesRegexp(
with self.assertRaisesRegex(
ProtectedError, r"protected foreign keys: 'Zone\.soa_mname'."
):
nameserver.delete()
Expand All @@ -242,7 +242,7 @@ def test_delete_soa_ns_exception_ns_record_retained(self):

zone.nameservers.add(nameserver)

with self.assertRaisesRegexp(
with self.assertRaisesRegex(
ProtectedError, r"protected foreign keys: 'Zone\.soa_mname'."
):
nameserver.delete()
Expand Down

0 comments on commit 47f9d2a

Please sign in to comment.