Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903685 - net-misc/httpie-3.2.1-r1 fails tests (missing dev-python/pytest-lazy-fixture dep, then other failures)
Summary: net-misc/httpie-3.2.1-r1 fails tests (missing dev-python/pytest-lazy-fixture ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-02 03:04 UTC by Jonathan Lovelace
Modified: 2023-08-26 17:26 UTC (History)
1 user (show)

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


Attachments
net-misc:httpie-3.2.1-r1:20230402-021102.log (net-misc:httpie-3.2.1-r1:20230402-021102.log,42.77 KB, text/x-log)
2023-04-02 03:04 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,9.45 KB, text/plain)
2023-04-02 03:05 UTC, Jonathan Lovelace
Details
net-misc:httpie-3.2.1-r1:20230402-022237.log.gz (net-misc:httpie-3.2.1-r1:20230402-022237.log.gz,137.26 KB, application/gzip)
2023-04-02 03:05 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-04-02 03:04:09 UTC
Created attachment 859404 [details]
net-misc:httpie-3.2.1-r1:20230402-021102.log

=net-misc/httpie-3.2.1-r1 fails its test phase for me. At first this is the following ERRORs, in the first-attached build log:

================================================== short test summary info ===================================================
ERROR tests/test_cookie_on_redirects.py - AttributeError: module pytest has no attribute lazy_fixture
ERROR tests/test_sessions.py - AttributeError: module pytest has no attribute lazy_fixture
ERROR tests/test_update_warnings.py - AttributeError: module pytest has no attribute lazy_fixture
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================================== 3 errors in 2.64s ======================================================


After I install dev-python/pytest-lazy-fixture, I no longer see these errors, but instead I see "282 failed, 715 passed, 25 skipped, 2 xfailed, 2 xpassed, 353 warnings" (I'll attach that build log after my emerge --info). Many of these failures end with text similar to the following:

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <httpie.models.HTTPResponse object at 0x7f4b9d956a40>

    @property
    def headers(self):
        try:
            raw = self._orig.raw
            if getattr(raw, '_original_response', None):
                raw_version = raw._original_response.version
            else:
                raw_version = raw.version
        except AttributeError:
            # Assume HTTP/1.1
            raw_version = 11
>       version = {
            9: '0.9',
            10: '1.0',
            11: '1.1',
            20: '2.0',
        }[raw_version]
E       KeyError: 0

raw        = <urllib3.response.HTTPResponse object at 0x7f4b9d954a90>
raw_version = 0
self       = <httpie.models.HTTPResponse object at 0x7f4b9d956a40>

httpie/models.py:82: KeyError
---------------------------------------------------- Captured stderr call ----------------------------------------------------

http: error: KeyError: 0
Comment 1 Jonathan Lovelace 2023-04-02 03:05:02 UTC
Created attachment 859405 [details]
emerge-info.txt
Comment 2 Jonathan Lovelace 2023-04-02 03:05:34 UTC
Created attachment 859406 [details]
net-misc:httpie-3.2.1-r1:20230402-022237.log.gz