This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: @support.requires_*_version broken for classes
Type: Stage: resolved
Components: Tests Versions: Python 3.10, Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, miss-islington, ned.deily
Priority: high Keywords: patch

Created on 2020-06-17 15:20 by christian.heimes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20942 merged christian.heimes, 2020-06-17 15:28
PR 20947 merged christian.heimes, 2020-06-17 17:25
PR 20948 merged christian.heimes, 2020-06-17 17:26
PR 20949 merged christian.heimes, 2020-06-17 17:27
Messages (6)
msg371752 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-06-17 15:20
The decorators requires_linux_version, requires_freebsd_version, and requires_mac_ver don't work as class decorators. Decorated classes are ignored completely and not used in tests. The problem affects a couple of tests in test_os and maybe more cases.
msg371758 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-06-17 16:34
Clarification: By "ignored" I mean that the entire class is ignored and none of the tests in the class is executed. I ran into the issue when I was working on eventfd PR.
msg371763 - (view) Author: miss-islington (miss-islington) Date: 2020-06-17 17:09
New changeset bb6ec14479f18c32e71e43f2785f177aa17aabbd by Christian Heimes in branch 'master':
bpo-41009: fix requires_OS_version() class decorator (GH-20942)
https://github.com/python/cpython/commit/bb6ec14479f18c32e71e43f2785f177aa17aabbd
msg372360 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2020-06-25 12:11
New changeset d3798ed9f1762dcf632369505d517f476eccde13 by Christian Heimes in branch '3.7':
[3.7] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20949)
https://github.com/python/cpython/commit/d3798ed9f1762dcf632369505d517f476eccde13
msg372362 - (view) Author: miss-islington (miss-islington) Date: 2020-06-25 12:18
New changeset cd6f9110974f733d10d9eef36a9a769a29cd3295 by Christian Heimes in branch '3.9':
[3.9] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20947)
https://github.com/python/cpython/commit/cd6f9110974f733d10d9eef36a9a769a29cd3295
msg372363 - (view) Author: miss-islington (miss-islington) Date: 2020-06-25 12:18
New changeset 8075fe199b0569428cebaf213663bdd1ca40d792 by Christian Heimes in branch '3.8':
[3.8] bpo-41009: fix requires_OS_version() class decorator (GH-20942) (GH-20948)
https://github.com/python/cpython/commit/8075fe199b0569428cebaf213663bdd1ca40d792
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85181
2020-06-25 12:19:30ned.deilysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-06-25 12:18:47miss-islingtonsetmessages: + msg372363
2020-06-25 12:18:09miss-islingtonsetmessages: + msg372362
2020-06-25 12:11:17ned.deilysetnosy: + ned.deily
messages: + msg372360
2020-06-17 17:27:03christian.heimessetpull_requests: + pull_request20130
2020-06-17 17:26:24christian.heimessetpull_requests: + pull_request20129
2020-06-17 17:25:36christian.heimessetpull_requests: + pull_request20128
2020-06-17 17:09:18miss-islingtonsetnosy: + miss-islington
messages: + msg371763
2020-06-17 16:34:37christian.heimessetmessages: + msg371758
2020-06-17 15:28:43christian.heimessetkeywords: + patch
stage: patch review
pull_requests: + pull_request20123
2020-06-17 15:20:43christian.heimescreate