diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-10-19 19:11:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 19:11:28 (GMT) |
commit | 975b94b9de969777218e96a9950c1dab2dab65a0 (patch) | |
tree | 67d364915ac41c1148023f2b5140ecb115d19768 /Doc/c-api/init.rst | |
parent | 236e301b8ad9b78ee880baf12e98a826113dc59b (diff) | |
download | cpython-975b94b9de969777218e96a9950c1dab2dab65a0.zip cpython-975b94b9de969777218e96a9950c1dab2dab65a0.tar.gz cpython-975b94b9de969777218e96a9950c1dab2dab65a0.tar.bz2 |
bpo-45500: Rewrite test_dbm (GH-29002)
* Generate test classes at import time. It allows to filter them when
run with unittest. E.g: "./python -m unittest test.test_dbm.TestCase_gnu -v".
* Create a database class in a new directory which will be removed after
test. It guarantees that all created files and directories be removed
and will not conflict with other dbm tests.
* Restore dbm._defaultmod after tests. Previously it was set to the last
dbm module (dbm.dumb) which affected other tests.
* Enable the whichdb test for dbm.dumb.
* Move test_keys to the correct test class. It does not test whichdb().
* Remove some outdated code and comments.
Diffstat (limited to 'Doc/c-api/init.rst')
0 files changed, 0 insertions, 0 deletions