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 1710335

Summary: python-pyramid fails to build with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-pyramidAssignee: Fedora Infrastructure SIG <infra-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: infra-sig, lewk, rbarlow, rbean, rossdylan, tdabasin
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-05-24 13:14:25 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: 1686977    
Attachments:
Description Flags
Full log from Copr none

Description Miro Hrončok 2019-05-15 11:06:37 UTC
Created attachment 1568955 [details]
Full log from Copr

python-pyramid 1.10.4-1.fc31 fails %check with Python 3.8.0a4:


======================================================================
FAIL: test_add_view_custom_predicate_bests_standard_predicate (tests.test_config.test_views.TestViewsConfigurationMixin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-pyramid-1.10.4-1.fc31/tests/test_config/test_views.py", line 1982, in test_add_view_custom_predicate_bests_standard_predicate
    self.assertEqual(len(w), 1)
AssertionError: 5 != 1

======================================================================
FAIL: test_add_view_with_check_csrf_predicates_match (tests.test_config.test_views.TestViewsConfigurationMixin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-pyramid-1.10.4-1.fc31/tests/test_config/test_views.py", line 1909, in test_add_view_with_check_csrf_predicates_match
    self.assertEqual(len(w), 1)
AssertionError: 3 != 1

======================================================================
FAIL: test_add_view_with_custom_predicates_match (tests.test_config.test_views.TestViewsConfigurationMixin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-pyramid-1.10.4-1.fc31/tests/test_config/test_views.py", line 1937, in test_add_view_with_custom_predicates_match
    self.assertEqual(len(w), 1)
AssertionError: 3 != 1

======================================================================
FAIL: test_add_view_with_custom_predicates_nomatch (tests.test_config.test_views.TestViewsConfigurationMixin)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-python-pyramid-1.10.4-1.fc31/tests/test_config/test_views.py", line 1958, in test_add_view_with_custom_predicates_nomatch
    self.assertEqual(len(w), 1)
AssertionError: 3 != 1

----------------------------------------------------------------------
Ran 2675 tests in 11.121s


I haven't yet checked, but len(w) is suspiciously "number of warning". There were some new DeprecationWarnings added in Python 3.8.0a4.

Full log attached.

Comment 1 Miro Hrončok 2019-05-24 13:14:25 UTC
Upstream CPython has reverted the DeprecationWarning for inspect.getfullargspec() and we have backported the change. Pyramid now builds.

I'm closing this, but will reopen after beta if new warnings break the tests again.