[python-engineio] test failures on F33 koji

2020-08-08 Thread Mukundan Ragavan
I am trying to fix FTBFS and upgrade engineio to 3.13 (current version
in rawhide is 3.11). Some tests keep failing on koji [0] but not when I
build locally using mock. This is what I see in build log -

_ ERROR collecting tests/common/test_async_eventlet.py _
/usr/lib/python3.9/site-packages/dns/resolver.py:743: in read_resolv_conf
f = stack.enter_context(open(f))
E   FileNotFoundError: [Errno 2] No such file or directory:
'/etc/resolv.conf'
During handling of the above exception, another exception occurred:




E   dns.resolver.NoResolverConfiguration: Resolver configuration could
not be read or specified no nameservers.


Pointers to fix this will be greatly appreciated. Thanks!


[0] https://koji.fedoraproject.org/koji/taskinfo?taskID=48843424



signature.asc
Description: OpenPGP digital signature
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org


[HEADS UP] pytest update to 6.0.x is approaching

2020-08-08 Thread Miro Hrončok

Hello,

recently we have updated pytest to 5, but version 6 is out and I feel confident 
that the update is safe, hence I plan to merge and ship pytest 6.0.1 in Fedora 
33+ in couple days:


https://src.fedoraproject.org/rpms/pytest/pull-request/17

I've analyzed the build failures with pytest 6.0.0rc1:

https://src.fedoraproject.org/rpms/pytest/pull-request/17#comment-50314

And later with 6.0.1:

https://src.fedoraproject.org/rpms/pytest/pull-request/17#comment-52937

Most of the failures are caused by PytestDeprecationWarning treated as error.
If your package FTBFS, you should see the reason in one of the comments there ^

As a short term mitigation, you can disable this treatment, see

https://docs.pytest.org/en/stable/changelog.html#breaking-changes


PytestDeprecationWarning are now errors by default.

Following our plan to remove deprecated features with as little disruption
as possible, all warnings of type PytestDeprecationWarning now generate
errors instead of warning messages.

The affected features will be effectively removed in pytest 6.1, so please
consult the Deprecations and Removals section in the docs for directions on
how to update existing code.

https://docs.pytest.org/en/latest/deprecations.html

In the pytest 6.0.X series, it is possible to change the errors back into
warnings as a stopgap measure by adding this to your pytest.ini file:

[pytest]
filterwarnings =
ignore::pytest.PytestDeprecationWarning

But this will stop working when pytest 6.1 is released.

If you have concerns about the removal of a specific feature, please add
a comment to https://github.com/pytest-dev/pytest/issues/5584



And if nothing else works, you can still use pytest 4, see:


https://lists.fedoraproject.org/archives/list/de...@lists.fedoraproject.org/message/ZZTI6MJJBTPST35DZG22YIUC4JBMCJXN/

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
___
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org