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 1389113
Summary: | py.test INTERNALERROR due to python-py bug | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Orion Poplawski <orion> | ||||||
Component: | python-py | Assignee: | Charalampos Stratakis <cstratak> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Jan Kepler <jkejda> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 7.2 | CC: | briang, cstratak, hhorak, isenfeld, jkejda, orion, pviktori | ||||||
Target Milestone: | rc | Keywords: | Rebase | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | python-py-1.4.32-1.el7 | Doc Type: | No Doc Update | ||||||
Doc Text: |
undefined
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-08-01 16:22:09 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: | 1380359, 1393868 | ||||||||
Attachments: |
|
Description
Orion Poplawski
2016-10-26 21:37:41 UTC
Hi Orion. When trying to reproduce the issue (aka build the package against epel7 as I understood), it can't find some packages: https://kojipkgs.fedoraproject.org//work/tasks/594/17300594/mock_output.log Finally have deps in the buildroot: https://koji.fedoraproject.org/koji/taskinfo?taskID=17509010 Created attachment 1246302 [details]
Minimal reproducer
Reproducer:
1) Download the minimal reproducer test.py
2) yum install pytest
3) execute 'py.test test.py"
Without the fix the result is the same as the report on the first comment
With the fix the result should be:
============================= test session starts ==============================
platform linux2 -- Python 2.7.5 -- py-1.4.27 -- pytest-2.7.0
rootdir: /home, inifile:
collected 1 items
test.py F
=================================== FAILURES ===================================
_____________________________________ test _____________________________________
def test():
[
> 'valid',bad]
E NameError: global name 'bad' is not defined
test.py:3: NameError
=========================== 1 failed in 0.00 seconds ===========================
Created attachment 1246336 [details]
build.log with fixed python-py
I backported the relevant commits and tried to rebuild the package against epel7 but it now fails on some other test cases. Attaching the build.log
Great. The python2 error seems to be an issue with ruamel-yaml and an old pytest. python3 errors were due to a problem with the python-typing packaging which should be fixed with python-typing-3.5.2.2-3.el7. Thanks for working on this. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1930 |