Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1705940

Summary: python-dbfread FTBFS with pytest 4 / nonresponsive maintainer
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-dbfreadAssignee: Julien Enselme <jujens>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: jujens
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-13 14:59:17 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: 1700317, 1671167, 1686977, 1732841    
Attachments:
Description Flags
Full log from Copr none

Description Miro Hrončok 2019-05-03 09:14:47 UTC
Created attachment 1562260 [details]
Full log from Copr

python-dbfread 2.0.7-9.git300b2d7.fc31 fails to get tested with pytest 4 and that blocks the Python 3.8 rebuild.

A simple fix is needed for the immediate problem with [pytest] section:

%prep
...
sed -i 's/\[pytest\]/\[tool:pytest\]/' setup.cfg

Yet even then, there are called fixtures:

+ pytest-3.8
============================= test session starts ==============================
platform linux -- Python 3.8.0a3, pytest-4.4.1, py-1.8.0, pluggy-0.9.0
rootdir: /builddir/build/BUILD/dbfread-300b2d7d907388cc3578d3fa4472e0419ccd34b9, inifile: setup.cfg
collected 18 items

dbfread/test_field_parser.py .............                               [ 72%]
dbfread/test_invalid_value.py ..                                         [ 83%]
dbfread/test_memo.py .                                                   [ 88%]
dbfread/test_read_and_length.py FF                                       [100%]

=================================== FAILURES ===================================
___________________________________ test_len ___________________________________
Fixture "table" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
__________________________________ test_list ___________________________________
Fixture "table" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.


Worst case scenario, please deselect test_read_and_length.py.

Full log attached.

Comment 1 Miro Hrončok 2019-07-10 10:22:11 UTC
Please respond.

Comment 2 Julien Enselme 2019-07-13 14:59:17 UTC
Sorry for the delay. I have been really busy these last few weeks. Trying to fix all packages today.

For this one, it's done!