Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 878111 - dev-python/hypothesis-6.56.2 fails tests
Summary: dev-python/hypothesis-6.56.2 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-23 18:21 UTC by Jonathan Lovelace
Modified: 2022-10-25 08:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:hypothesis-6.56.2:20221023-162212.log (dev-python:hypothesis-6.56.2:20221023-162212.log,34.24 KB, text/x-log)
2022-10-23 18:21 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.31 KB, text/plain)
2022-10-23 18:22 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-10-23 18:21:43 UTC
Created attachment 825147 [details]
dev-python:hypothesis-6.56.2:20221023-162212.log

=dev-python/hypothesis-6.56.2 fails its test phase, with the following:

ERROR: while parsing the following warning configuration:

  ignore::hypothesis.errors.NonInteractiveExampleWarning

This error occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1639, in parse_warning_filter
    category: Type[Warning] = _resolve_warning_category(category_)
  File "/usr/lib/python3.10/site-packages/_pytest/config/__init__.py", line 1677, in _resolve_warning_category
    m = __import__(module, None, None, [klass])
  File "/var/tmp/portage/dev-python/hypothesis-6.56.2/work/hypothesis-hypothesis-python-6.56.2/hypothesis-python-python3_10/install/usr/lib/pyth
on3.10/site-packages/hypothesis/__init__.py", line 56, in <module>
    run()
  File "/var/tmp/portage/dev-python/hypothesis-6.56.2/work/hypothesis-hypothesis-python-6.56.2/hypothesis-python-python3_10/install/usr/lib/pyth
on3.10/site-packages/hypothesis/entry_points.py", line 63, in run
    hook = entry.load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "pydantic/_hypothesis_plugin.py", line 53, in init pydantic._hypothesis_plugin
  File "/usr/lib/python3.10/site-packages/email_validator/__init__.py", line 6, in <module>
    import dns.resolver
  File "/usr/lib/python3.10/site-packages/dns/resolver.py", line 38, in <module>
    import dns.query
  File "/usr/lib/python3.10/site-packages/dns/query.py", line 43, in <module>
    from requests_toolbelt.adapters.source import SourceAddressAdapter
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/__init__.py", line 12, in <module>
    from .adapters import SSLAdapter, SourceAddressAdapter
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/adapters/__init__.py", line 12, in <module>
    from .ssl import SSLAdapter
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/adapters/ssl.py", line 16, in <module>
    from .._compat import poolmanager
  File "/usr/lib/python3.10/site-packages/requests_toolbelt/_compat.py", line 56, in <module>
    from requests.packages.urllib3.contrib.pyopenssl \
  File "/usr/lib/python3.10/site-packages/urllib3/contrib/pyopenssl.py", line 82, in <module>
    warnings.warn(
DeprecationWarning: 'urllib3.contrib.pyopenssl' module is deprecated and will be removed in a future release of urllib3 2.x. Read more in this issue: https://github.com/urllib3/urllib3/issues/2680
Comment 1 Jonathan Lovelace 2022-10-23 18:22:11 UTC
Created attachment 825149 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-10-24 15:06:35 UTC
6.56.3 has a blocker on requests-toolbelt for this.  Apparently upstream has finally removed the deprecated import today (I haven't verified it though), so hopefully it will no longer be necessary.
Comment 3 Larry the Git Cow gentoo-dev 2022-10-25 08:28:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe72968dfb52bc780f87d0d9498f832c731ee2a0

commit fe72968dfb52bc780f87d0d9498f832c731ee2a0
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-10-25 05:19:44 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-10-25 08:28:01 +0000

    dev-python/hypothesis: Adjust test blocker for requests-toolbelt
    
    requests-toolbelt-0.10.1 no longer immediately triggers the deprecation
    warning, so we do not have to block this version anymore.  While at it,
    copy the blocker to the older version.
    
    Closes: https://bugs.gentoo.org/878111
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/hypothesis/hypothesis-6.56.2.ebuild | 1 +
 dev-python/hypothesis/hypothesis-6.56.3.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)