]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513)
authorHai Shi <shihai1992@gmail.com>
Fri, 16 Oct 2020 08:34:15 +0000 (16:34 +0800)
committerGitHub <noreply@github.com>
Fri, 16 Oct 2020 08:34:15 +0000 (10:34 +0200)
commitc9f696cb96d1c362d5cad871f61da520572d9b08
tree4dbc6f4960f9058660751bd860589a6e9762ccc7
parentcf693e537dc8aaa14315a7f59baec4a31d1167d3
bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513)

* Move the codecs' (un)register operation to testcases.
* Remove _codecs._forget_codec() and _PyCodec_Forget()
Lib/test/test_charmapcodec.py
Lib/test/test_codecs.py
Lib/test/test_io.py
Lib/test/test_unicode.py
Modules/_codecsmodule.c
Modules/clinic/_codecsmodule.c.h
Python/codecs.c