diff options
| author | Bob Halley <halley@dnspython.org> | 2020-06-17 10:43:44 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-06-17 10:43:44 -0700 |
| commit | f028afbd0d8b26ed7a647e1c695cba4067ef638f (patch) | |
| tree | 5e100a0ad31947695dd19352c586fe49713ddd17 /tests/test_message.py | |
| parent | b50f4c96daa9b94b74c0136aa5a494ea41c61909 (diff) | |
| download | dnspython-f028afbd0d8b26ed7a647e1c695cba4067ef638f.tar.gz | |
some IDNA 2008 tests were not getting skipped if idna was not available
Diffstat (limited to 'tests/test_message.py')
| -rw-r--r-- | tests/test_message.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_message.py b/tests/test_message.py index 55ae6fd..ab40a05 100644 --- a/tests/test_message.py +++ b/tests/test_message.py @@ -244,6 +244,8 @@ class MessageTestCase(unittest.TestCase): idna_codec=dns.name.IDNA_2003) self.assertEqual(a.answer[0], rrs) + @unittest.skipUnless(dns.name.have_idna_2008, + 'Python idna cannot be imported; no IDNA2008') def test_IDNA_2008(self): a = dns.message.from_text(idna_text, idna_codec=dns.name.IDNA_2008) rrs = dns.rrset.from_text_list('xn--knigsgchen-b4a3dun.', 30, |
