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 1716489
Summary: | python-asynctest fails to build on Fedora 31 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-asynctest | Assignee: | Dominik 'Rathann' Mierzejewski <dominik> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | cstratak, dominik, releng, tir.karthi |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/python-asynctest/ | ||
Whiteboard: | |||
Fixed In Version: | python-asynctest-0.13.0-1.fc31 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-11 12:38:39 UTC | Type: | --- |
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, 1686977, 1732841 |
Description
Miro Hrončok
2019-06-03 14:37:41 UTC
Some of the test failures are fixed on reverting https://bugs.python.org/issue36996 . I am not sure if it's a CPython regression or if asynctest test's have to be changed as per the changes over patch can now act on async functions. ====================================================================== ERROR: test_both_patch_and_patch_dict_with_scope_global (test.test_mock.Test_patch_and_patch_dict_scope) [patch and patch.dict] ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/asynctest-0.12.2/asynctest/mock.py", line 1240, in _patch_dict self._original = self.in_dict.copy() AttributeError: 'str' object has no attribute 'copy' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/asynctest-0.12.2/asynctest/mock.py", line 914, in patched_factory arg = patching.__enter__() File "/usr/lib64/python3.8/unittest/mock.py", line 1726, in __enter__ self._patch_dict() File "/builddir/build/BUILD/asynctest-0.12.2/asynctest/mock.py", line 1246, in _patch_dict self._original[key] = self.in_dict[key] TypeError: string indices must be integers During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.8/unittest/mock.py", line 1782, in _clear_dict in_dict.clear() AttributeError: 'str' object has no attribute 'clear' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/builddir/build/BUILD/asynctest-0.12.2/test/test_mock.py", line 1381, in test_both_patch_and_patch_dict_with_scope_global self.assertEqual((True, True), run_coroutine(a_coroutine())) File "/builddir/build/BUILD/asynctest-0.12.2/test/utils.py", line 9, in run_coroutine return loop.run_until_complete(coroutine) File "/usr/lib64/python3.8/asyncio/base_events.py", line 608, in run_until_complete return future.result() File "/builddir/build/BUILD/asynctest-0.12.2/asynctest/mock.py", line 958, in patched_generator return (yield from patched_factory(*args, **kwargs)) File "/builddir/build/BUILD/asynctest-0.12.2/asynctest/mock.py", line 948, in patched_factory patching.__exit__(*exc_info) File "/usr/lib64/python3.8/unittest/mock.py", line 1773, in __exit__ self._unpatch_dict() File "/builddir/build/BUILD/asynctest-0.12.2/asynctest/mock.py", line 1269, in _unpatch_dict _clear_dict(self.in_dict) File "/usr/lib64/python3.8/unittest/mock.py", line 1786, in _clear_dict del in_dict[key] TypeError: 'str' object does not support item deletion ... Ran 215 tests in 0.773s FAILED (failures=27, errors=18, unexpected successes=1) Any updates on that? *** Bug 1736476 has been marked as a duplicate of this bug. *** Looks like 0.13.0 builds and its testsuite passes, so I'll just bump the version. ... but rawhide is still carrying python 3.7.4? Anyway, the bug title says FTBFS in F31, which is no longer true, so I'm closing this. rawhide is still carrying python 3.7, yes. if it builds in rawhide, it's good. if it builds with 3.7 but not 3.8, I'll figure that out and open a separate bug if needed. Thanks. |