Bug 1927655 - python-pycurl: FTBFS in Fedora rawhide
Summary: python-pycurl: FTBFS in Fedora rawhide
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pycurl
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: PYTHON3.10 F35FTBFS
TreeView+ depends on / blocked
 
Reported: 2021-02-11 09:36 UTC by Tomáš Hrnčiar
Modified: 2021-02-17 14:28 UTC (History)
3 users (show)

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:
Clone Of:
Environment:
Last Closed: 2021-02-17 14:28:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.