[New-bugs-announce] [issue46348] Morernize `test_typing`

Nikita Sobolev report at bugs.python.org
Tue Jan 11 16:22:44 EST 2022


New submission from Nikita Sobolev <mail at sobolevn.me>:

There are several very old details in `test_typing`.

Some examples:
1. `@skipUnless(sys.version_info >= (3, 3), 'ChainMap was added in 3.3')` https://github.com/python/cpython/blame/dce642f24418c58e67fa31a686575c980c31dd37/Lib/test/test_typing.py#L3583 Probably we don't care about `3.3` anymore, so this decorator cam be removed
2. Lib/test/mod_generics_cache.py has a specific path for 3.6, which has reached its EOL, so it can also be simplified
3. `ASYNCIO_TESTS` can be written as a regular code now (this is the one I am not 100% sure about, but let's see what the CI will say)

PR is on its way!

----------
components: Library (Lib)
messages: 410333
nosy: sobolevn
priority: normal
severity: normal
status: open
title: Morernize `test_typing`
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46348>
_______________________________________


More information about the New-bugs-announce mailing list