Closed kloczek closed 2 years ago
What c-ares version do you have in your system?
I'm not familiar with pytest.ini, what should go in there?
I'm using c-ares 1.18.1.
I'm not familiar with pytest.ini, what should go in there?
Firs it would be good to complete set of pytest parametrs which will be producing correct testtin (+ eventually some test suite corrections) than all cold be coded to pytest.ini to project.toml :)
Gentle ping .. 😄
Just FTR. New 4.2.0 still fails but in one unit less. Here is pytest output:
There are some warnings which could be used to improve test suite.
Closing. Looks like latest 4.2.1 version no longer fails
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-pycares-4.2.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-pycares-4.2.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra tests/tests.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/pycares-pycares-4.2.1
plugins: subtests-0.7.0, timeout-2.1.0
collected 54 items
tests/tests.py ..................xx.........s.................x..xs.. [100%]
========================================================================= short test summary info ==========================================================================
SKIPPED [1] tests/tests.py:430: ANY type does not work on Mac.
SKIPPED [1] tests/tests.py:537: The site used for this test no longer returns a non-ascii SOA.
XFAIL tests/tests.py::DNSTest::test_getnameinfo_ipv6
reason:
XFAIL tests/tests.py::DNSTest::test_getnameinfo_ipv6_ll
reason:
XFAIL tests/tests.py::DNSTest::test_query_txt_bytes2
reason:
XFAIL tests/tests.py::DNSTest::test_query_txt_multiple_chunked_with_non_ascii_content
reason:
================================================================ 48 passed, 2 skipped, 4 xfailed in 21.92s =================================================================
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes oly locally installed modulesHere is pytest output:
BTW: without passing to pytest
tests/tests.py
it is not able to find units. Probably it would be good to add some testing description in pytest.ini.