From 013f82219e93ecce5655ec4a4e3d4ee7cd4856f4 Mon Sep 17 00:00:00 2001 From: aviadhahami Date: Tue, 21 Jun 2022 14:19:25 +0300 Subject: [PATCH] tests: ignoring 2 tests due to dead servers the two "expected-to-fail" tests fail due to dead servers. these needs to be fixed but are ignored now in favor of security --- tests/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/tests.py b/tests/tests.py index abff8e6..95b63ff 100755 --- a/tests/tests.py +++ b/tests/tests.py @@ -324,6 +324,11 @@ def cb(result, errorno): self.assertEqual(type(r), pycares.ares_query_txt_result) self.assertIsInstance(r.text, str) # it's ASCII + # The 2 tests below hit a dead end thus fail. Commenting for now as I couldn't find a live server + # that satisfies what the tests are looking for + + # FIXME: wide.com.es is a dead end! + @unittest.expectedFailure def test_query_txt_bytes2(self): self.result, self.errorno = None, None def cb(result, errorno): @@ -335,6 +340,8 @@ def cb(result, errorno): self.assertEqual(type(r), pycares.ares_query_txt_result) self.assertIsInstance(r.text, bytes) + # FIXME: "txt-non-ascii.dns-test.hmnid.ru" is a dead end! + @unittest.expectedFailure def test_query_txt_multiple_chunked_with_non_ascii_content(self): self.result, self.errorno = None, None def cb(result, errorno):