[New-bugs-announce] [issue46327] `test_enum` contains tests for older versions of python
report at bugs.python.org
Mon Jan 10 05:03:42 EST 2022
New submission from Nikita Sobolev <mail at sobolevn.me>:
Here's the problem: https://github.com/python/cpython/blob/main/Lib/test/test_enum.py#L4515-L4531
Why it is a problem?
1. First test is marked as `@unittest.skipUnless(python_version == (3, 8)`. Which means it is only executed on `3.8`. I think it should be removed from more recent branches
2. Second test is marked as `@unittest.skipUnless(python_version >= (3, 9)`. Which means that it will be executed on three currently supported branches. I think we can remove this decorator
I will send a PR today.
nosy: ethan.furman, sobolevn
title: `test_enum` contains tests for older versions of python
versions: Python 3.10, Python 3.11, Python 3.9
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce