summaryrefslogtreecommitdiff
path: root/tests/test_flags.py
diff options
context:
space:
mode:
authorThomas A Caswell <tcaswell@bnl.gov>2019-10-30 19:57:57 -0400
committerThomas A Caswell <tcaswell@bnl.gov>2019-10-30 19:57:57 -0400
commit6c6fe87aa5c9c86be157cae3efb132fe48875ea4 (patch)
treed4ad1f48a6ada44633d259155512103fbc767116 /tests/test_flags.py
parent6db5ee1240b0d5cc060a02abe1886413ab432141 (diff)
downloaddnspython-6c6fe87aa5c9c86be157cae3efb132fe48875ea4.tar.gz
TST: fix failUnlessRaises -> assertRaises deprecation
failUnlessRaises was deprecated in py31
Diffstat (limited to 'tests/test_flags.py')
-rw-r--r--tests/test_flags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_flags.py b/tests/test_flags.py
index 132869d..20c200d 100644
--- a/tests/test_flags.py
+++ b/tests/test_flags.py
@@ -46,7 +46,7 @@ class FlagsTestCase(unittest.TestCase):
def test_rcode8(self):
def bad():
dns.rcode.to_flags(4096)
- self.failUnlessRaises(ValueError, bad)
+ self.assertRaises(ValueError, bad)
def test_flags1(self):
self.assertTrue(dns.flags.from_text("RA RD AA QR") == \