Giter Club home page Giter Club logo

Comments (5)

saghul avatar saghul commented on June 29, 2024

This is now fixed in master, cheers!

from pycares.

Tom-python0121 avatar Tom-python0121 commented on June 29, 2024

@saghul Whether a new version has been released to solve the problem.

from pycares.

saghul avatar saghul commented on June 29, 2024

Yep, a new version is out!

from pycares.

Tom-python0121 avatar Tom-python0121 commented on June 29, 2024

@saghul ,I still have the same problem with the latest version:

[root@centos8 spack-src]# python tests/tests.py
test_channel_local_ip (__main__.DNSTest) ... ok
test_channel_local_ip2 (__main__.DNSTest) ... ok
test_channel_nameservers (__main__.DNSTest) ... FAIL
test_channel_nameservers2 (__main__.DNSTest) ... FAIL
test_channel_nameservers3 (__main__.DNSTest) ... ok
test_channel_timeout (__main__.DNSTest) ... ok
test_custom_resolvconf (__main__.DNSTest) ... ok
test_errorcode_dict (__main__.DNSTest) ... ok
test_gethostbyaddr (__main__.DNSTest) ... ok
test_gethostbyaddr6 (__main__.DNSTest) ... ok
test_gethostbyname (__main__.DNSTest) ... ok
test_gethostbyname_small_timeout (__main__.DNSTest) ... ok
test_getnameinfo (__main__.DNSTest) ... ok
test_getnameinfo_ipv6 (__main__.DNSTest) ... expected failure
test_getnameinfo_ipv6_ll (__main__.DNSTest) ... expected failure
test_idna2008_encoding (__main__.DNSTest) ... skipped 'idna module not installed'
test_idna_encoding (__main__.DNSTest) ... FAIL
test_idna_encoding_query_a (__main__.DNSTest) ... FAIL
test_import_errno (__main__.DNSTest) ... ok
test_lookup (__main__.DNSTest) ... FAIL
test_query_a (__main__.DNSTest) ... FAIL
test_query_a_bad (__main__.DNSTest) ... FAIL
test_query_a_rotate (__main__.DNSTest) ... ok
test_query_aaaa (__main__.DNSTest) ... FAIL
test_query_any (__main__.DNSTest) ... skipped 'ANY type does not work on Mac.'
test_query_bad_type (__main__.DNSTest) ... ok
test_query_cancelled (__main__.DNSTest) ... ok
test_query_class_chaos (__main__.DNSTest) ... FAIL
test_query_class_invalid (__main__.DNSTest) ... ok
test_query_cname (__main__.DNSTest) ... FAIL
test_query_mx (__main__.DNSTest) ... FAIL
test_query_naptr (__main__.DNSTest) ... FAIL
test_query_ns (__main__.DNSTest) ... FAIL
test_query_onion (__main__.DNSTest) ... ok
test_query_ptr (__main__.DNSTest) ... FAIL
test_query_ptr_ipv6 (__main__.DNSTest) ... FAIL
test_query_soa (__main__.DNSTest) ... FAIL
test_query_srv (__main__.DNSTest) ... FAIL
test_query_timeout (__main__.DNSTest) ... ok
test_query_txt (__main__.DNSTest) ... FAIL
test_query_txt_bytes1 (__main__.DNSTest) ... FAIL
test_query_txt_bytes2 (__main__.DNSTest) ... FAIL
test_query_txt_chunked (__main__.DNSTest) ... FAIL
test_query_txt_multiple_chunked (__main__.DNSTest) ... FAIL
test_query_txt_multiple_chunked_with_non_ascii_content (__main__.DNSTest) ... FAIL
test_result_not_ascii (__main__.DNSTest) ... skipped 'The site used for this test no longer returns a non-ascii SOA.'
test_search (__main__.DNSTest) ... ok
test_strerror_str (__main__.DNSTest) ... ok

======================================================================
FAIL: test_channel_nameservers (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 414, in test_channel_nameservers
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_channel_nameservers2 (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 423, in test_channel_nameservers2
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_idna_encoding (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 496, in test_idna_encoding
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_idna_encoding_query_a (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 507, in test_idna_encoding_query_a
    self.assertEqual(self.errorno, pycares.errno.ARES_ENOTFOUND)
AssertionError: 12 != 4

======================================================================
FAIL: test_lookup (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 587, in test_lookup
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_a (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 129, in test_query_a
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_a_bad (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 142, in test_query_a_bad
    self.assertEqual(self.errorno, pycares.errno.ARES_ENOTFOUND)
AssertionError: 12 != 4

======================================================================
FAIL: test_query_aaaa (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 166, in test_query_aaaa
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_class_chaos (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 291, in test_query_class_chaos
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_cname (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 178, in test_query_cname
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_mx (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 187, in test_query_mx
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_naptr (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 331, in test_query_naptr
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_ns (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 198, in test_query_ns
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_ptr (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 343, in test_query_ptr
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_ptr_ipv6 (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 357, in test_query_ptr_ipv6
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_soa (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 310, in test_query_soa
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_srv (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 320, in test_query_srv
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_txt (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 208, in test_query_txt
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_txt_bytes1 (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 250, in test_query_txt_bytes1
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_txt_bytes2 (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 262, in test_query_txt_bytes2
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_txt_chunked (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 219, in test_query_txt_chunked
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_txt_multiple_chunked (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 231, in test_query_txt_multiple_chunked
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

======================================================================
FAIL: test_query_txt_multiple_chunked_with_non_ascii_content (__main__.DNSTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/tests.py", line 274, in test_query_txt_multiple_chunked_with_non_ascii_content
    self.assertNoError(self.errorno)
  File "tests/tests.py", line 42, in assertNoError
    self.assertEqual(errorno, None)
AssertionError: 12 != None

----------------------------------------------------------------------
Ran 48 tests in 457.604s

FAILED (failures=23, skipped=3, expected failures=2)

Here's my system information:
[root@centos8 ~]# spack debug report

  • Spack: 0.16.1-1624-a0b5dcca3c
  • Python: 3.6.8
  • Platform: linux-centos8-aarch64
  • Concretizer: original

from pycares.

saghul avatar saghul commented on June 29, 2024

Can you try building master, I just pushed a c-ares update. DNS tests are very environment sensitive, so sometimes there are false positives. As you can see, the CI is green here.

from pycares.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.