Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest failed in pycares@4.0.0 on centos8_aarch64 #163

Closed
Tom-python0121 opened this issue Sep 6, 2021 · 1 comment
Closed

pytest failed in pycares@4.0.0 on centos8_aarch64 #163

Tom-python0121 opened this issue Sep 6, 2021 · 1 comment

Comments

@Tom-python0121
Copy link

Tom-python0121 commented Sep 6, 2021

Hello,I meet a problem:pytest failed in pycares@4.0.0 on centos8_aarch64

Steps to reproduce the issue

cmd:python tests/tests.py
error:
===================================================================================================== FAILURES =====================================================================================================
__________________________________________________________________________________________ DNSTest.test_custom_resolvconf __________________________________________________________________________________________
[gw6] linux -- Python 3.8.8 /home/spack/opt/spack/linux-debian10-aarch64/gcc-8.3.0/python-3.8.8-2teergbqi4xrvcbwruvpqsga4v5osokp/bin/python3.8

self = <tests.DNSTest testMethod=test_custom_resolvconf>

    @unittest.skipIf(sys.platform == 'win32', 'skipped on Windows')
    def test_custom_resolvconf(self):
        self.result, self.errorno = None, None
        def cb(result, errorno):
            self.result, self.errorno = result, errorno
        self.channel = pycares.Channel(tries=1, timeout=2.0, resolvconf_path=os.path.join(FIXTURES_PATH, 'badresolv.conf'))
        self.channel.query('google.com', pycares.QUERY_TYPE_A, cb)
        self.wait()
        self.assertEqual(self.result, None)
>       self.assertEqual(self.errorno, pycares.errno.ARES_ETIMEOUT)
E       AssertionError: 11 != 12

tests/tests.py:620: AssertionError
============================================================================================= short test summary info ==============================================================================================
FAILED tests/tests.py::DNSTest::test_custom_resolvconf - AssertionError: 11 != 12

There are many test bugs. Can you help fix these bugs?This error is also reported on CentOS6_x86_64.

@saghul
Copy link
Owner

saghul commented Oct 18, 2021

Tests rely on the runtime environment alas, so I'm only considering actual failures those that fail on the CI.

@saghul saghul closed this as completed Oct 18, 2021
@mcepl mcepl mentioned this issue Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants