Bug 1577648

Summary: pytest FTBFS on python 3.7
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: pytestAssignee: Thomas Moschny <thomas.moschny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mrunge, thomas.moschny
Target Milestone: ---Keywords: Reopened
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: 2018-06-04 05:56:57 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: 1559659, 1581692    
Bug Blocks: 1565020    
Attachments:
Description Flags
build.log from Copr
none
Patch for pytest 3.4.2 that gets the job done
none
build.log from copr
none
root.log from copr none

Description Miro Hrončok 2018-05-13 18:15:17 UTC
Created attachment 1435826 [details]
build.log from Copr

pytest testsuite fails on Python 3.7

This has been fixed upstream and we need to update to 3.5.1 or backport this:

https://github.com/pytest-dev/pytest/pull/3355

Comment 1 Miro Hrončok 2018-05-13 23:32:15 UTC
Created attachment 1435979 [details]
Patch for pytest 3.4.2 that gets the job done

Here's a patch for pytest 3.4.2 that gets the job done. I'd rather get pytest updated but if that would turn out problematic, we can always fallback to this patch.

Comment 2 Thomas Moschny 2018-05-19 15:51:21 UTC
Thanks for the patch. I built 3.5.1 for rawhide though.

Comment 3 Miro Hrončok 2018-05-19 17:52:09 UTC
Thanks.

Comment 4 Miro Hrončok 2018-05-22 15:26:57 UTC
Created attachment 1440248 [details]
build.log from copr

So this fails again, because DepracationWarnings.

E           DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

Upstream is dealing with it in https://github.com/pytest-dev/pytest/issues/3339

Ie been trying to use -W ignore::DeprecationWarning but it didn't help.

Comment 5 Miro Hrončok 2018-05-22 15:27:30 UTC
Created attachment 1440249 [details]
root.log from copr

Comment 6 Miro Hrončok 2018-05-22 20:26:32 UTC
Upstream fix: https://github.com/pytest-dev/pytest/pull/3497

Comment 7 Thomas Moschny 2018-05-23 07:26:48 UTC
Should we apply that patch or wait for 3.5.2?

Comment 8 Miro Hrončok 2018-05-23 08:52:09 UTC
They want to release 3.6 next week. We can wait. I can use that patch in copr for rebuilds and 3.7 is still blocked by other things.

Comment 9 Thomas Moschny 2018-06-04 05:56:57 UTC
Updated to 3.6.