Bug 1927655

Summary: python-pycurl: FTBFS in Fedora rawhide
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-pycurlAssignee: Kamil Dudka <kdudka>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: kdudka, msekleta, svashisht
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/python-pycurl
Whiteboard:
Fixed In Version: python-pycurl-7.43.0.6-5.fc35 python-pycurl-7.43.0.6-5.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-17 14:28:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1890881, 1927309    

Description Tomáš Hrnčiar 2021-02-11 09:36:02 UTC
Description of problem:
Package python-pycurl fails to build from source in Fedora rawhide.

Version-Release number of selected component (if applicable):
7.43.0.6-4.fc34

Steps to Reproduce:
koji build --scratch f34 python-pycurl-7.43.0.6-4.fc34.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/python-pycurl

======================================================================
FAIL: test_failonerror (tests.failonerror_test.FailonerrorTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/failonerror_test.py", line 31, in test_failonerror
    self.curl.perform()
pycurl.error: (22, 'The requested URL returned error: 403')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/util.py", line 119, in decorated
    return fn(*args, **kwargs)
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/failonerror_test.py", line 34, in test_failonerror
    self.assertEqual('The requested URL returned error: 403 Forbidden', e.args[1])
AssertionError: 'The requested URL returned error: 403 Forbidden' != 'The requested URL returned error: 403'
- The requested URL returned error: 403 Forbidden
?                                      ----------
+ The requested URL returned error: 403


======================================================================
FAIL: test_failonerror_status_line_invalid_utf8_python3 (tests.failonerror_test.FailonerrorTest)
part1part2----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/failonerror_test.py", line 71, in test_failonerror_status_line_invalid_utf8_python3
    self.curl.perform()
pycurl.error: (22, 'The requested URL returned error: 555')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/util.py", line 91, in decorated
    return fn(*args, **kwargs)
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/util.py", line 119, in decorated
    return fn(*args, **kwargs)
  File "/builddir/build/BUILD/pycurl-REL_7_43_0_6/tests/failonerror_test.py", line 74, in test_failonerror_status_line_invalid_utf8_python3
    assert e.args[1].startswith('The requested URL returned error: 555 ')
AssertionError

----------------------------------------------------------------------
Ran 345 tests in 7.798s

FAILED (SKIP=3, failures=2)

Comment 1 Kamil Dudka 2021-02-17 13:47:24 UTC
These tests stopped working because libcurl upstream intentionally changed the error messages to omit the information the tests look for:

    https://github.com/curl/curl/issues/6615

Comment 2 Kamil Dudka 2021-02-17 14:21:14 UTC
dist-git commit: https://src.fedoraproject.org/rpms/python-pycurl/c/81af08a6