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 1583745 - python-mccabe FTBFS on python 3.7
Summary: python-mccabe FTBFS on python 3.7
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-mccabe
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON37
TreeView+ depends on / blocked
 
Reported: 2018-05-29 15:16 UTC by Miro Hrončok
Modified: 2018-05-31 12:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-31 12:31:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build.log from copr (12.13 KB, text/plain)
2018-05-29 15:16 UTC, Miro Hrončok
no flags Details
root.log from copr (37.17 KB, text/plain)
2018-05-29 15:17 UTC, Miro Hrončok
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github PyCQA mccabe issues 61 0 None None None 2018-05-29 15:23:23 UTC

Description Miro Hrončok 2018-05-29 15:16:38 UTC
Created attachment 1445451 [details]
build.log from copr

Description of problem: python-mccabe FTBFS on python 3.7 due to failed test:

+ py.test-2.7
============================= test session starts ==============================
platform linux2 -- Python 2.7.15, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /builddir/build/BUILD/mccabe-0.6.1, inifile:
collected 14 items
test_mccabe.py ss............                                            [100%]
===================== 12 passed, 2 skipped in 0.04 seconds =====================
+ py.test-3
============================= test session starts ==============================
platform linux -- Python 3.7.0b4, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
rootdir: /builddir/build/BUILD/mccabe-0.6.1, inifile:
collected 14 items
test_mccabe.py ..F...........                                            [100%]
=================================== FAILURES ===================================
____________________ McCabeTestCase.test_expr_as_statement _____________________
self = <test_mccabe.McCabeTestCase testMethod=test_expr_as_statement>
    def test_expr_as_statement(self):
        complexity = get_complexity_number(expr_as_statement, self.strio)
>       self.assertEqual(complexity, 1)
E       AssertionError: 2 != 1
test_mccabe.py:192: AssertionError
===================== 1 failed, 13 passed in 0.09 seconds ======================


Version-Release number of selected component (if applicable):	0.6.1-7.fc29

Logs attached.

Comment 1 Miro Hrončok 2018-05-29 15:17:52 UTC
Created attachment 1445452 [details]
root.log from copr

Comment 2 Miro Hrončok 2018-05-29 15:25:50 UTC
Orphan. I asked for it in https://pagure.io/releng/issue/7533

Comment 3 Nick Coghlan 2018-05-30 12:11:54 UTC
Note that this test failure is likely to away in 3.7.0b5, since we reverted the AST change that caused it: https://github.com/python/cpython/pull/7121

(Upstream may still want to change their test though, since we're still planning to make a change along these lines for 3.8)

Comment 4 Miro Hrončok 2018-05-31 12:31:18 UTC
Indeed. Builds fine with b5.


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