summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm_gnu.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-061-1/+1
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21317)Hai Shi2020-07-061-1/+2
|
* bpo-33106: change dbm key deletion error for readonly file from KeyError to ↵Xiang Zhang2018-12-121-0/+11
| | | | | | dbm.error (#6295)
* bpo-34248: Add filename to error raised in {gnu,ndbm}.open() (GH-8590)Zsolt Cserna2018-09-271-0/+7
| | | | | | Report the filename to the exception when raising {gdbm,dbm.ndbm}.error in dbm.gnu.open() and dbm.ndbm.open() functions, so it gets printed when the exception is raised, and can also be obtained by the filename attribute of the exception object.
* Fix compiling error when missing gdbm version macros (GH-7823)Xiang Zhang2018-06-201-3/+2
|
* bpo-33901: Add _gdbm._GDBM_VERSION (GH-7794)Victor Stinner2018-06-191-0/+11
| | | | | | | * Fix also PyInit__gdbm() to catch errors. * test.pythoninfo: add gdbm.version * test_dbm_gnu now logs GDBM_VERSION when run in verbose mode. * pythoninfo: rename function to collect_gdbm()
* bpo-33901: Better test_dbm_gnu.test_reorganize() fix (GH-7795)Victor Stinner2018-06-191-3/+7
| | | | Fix test_dbm_gnu.test_reorganize() on macOS with gdbm 1.15: add a larger value to make sure that the file size changes.
* bpo-33901: Fix test_dbm_gnu for gdbm 1.15 (GH-7791)Victor Stinner2018-06-191-2/+2
| | | | | | Using gdbm 1.15, creating a database creates a file of 16 MiB. Adding a small entry and then modifying the small entry doesn't change the file size. Modify test_dbm_gnu to be less strict: allow that the file size doesn't change.
* Use more specific asserts in dbm tests. (GH-7786)Serhiy Storchaka2018-06-191-2/+3
| | | This may help to investigate bpo-33901.
* bpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)Serhiy Storchaka2018-04-291-1/+4
|
* bpo-32922: dbm.open() now encodes filename with the filesystem encoding. ↵Serhiy Storchaka2018-02-261-1/+35
| | | | (GH-5832)
* Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+1
|
* - Remove execute permissions from test_dbm_gnu.py and test_dbm_ndbm.pydoko@ubuntu.com2013-11-191-0/+0
|\
| * - Remove execute permissions from test_dbm_gnu.py and test_dbm_ndbm.pydoko@ubuntu.com2013-11-191-0/+0
| |
* | Close #19282: Native context management in dbmNick Coghlan2013-11-171-0/+11
|/
* Issue #19288: Fixed the "in" operator of dbm.gnu databases for stringSerhiy Storchaka2013-10-241-0/+1
| | | | argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
* #17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware.Ezio Melotti2013-03-011-5/+2
|
* Fix dbm_gnu test relying on set order.Georg Brandl2012-02-201-1/+1
|
* #6045: provide at least get() and setdefault() for all dbm modules.Georg Brandl2010-12-041-0/+4
|
* use assert[Not]In where appropriateBenjamin Peterson2010-01-191-2/+2
| | | | A patch from Dave Malcolm.
* convert old fail* assertions to assert*Benjamin Peterson2009-06-301-4/+4
|
* Allow skipping of regression tests not supported on windows. This reduces ↵Kristján Valur Jónsson2009-04-011-1/+2
| | | | noise in the regression test suite for py3k on Windows.
* Fix a broken test_dbm_gnu as introducted by r67380.Brett Cannon2008-11-251-1/+1
|
* dbm.gnu and dbm.ndbm accept both strings and bytes as keys and values. For theBrett Cannon2008-11-251-0/+2
| | | | | | former they are converted to bytes before being written to the DB. Closes issue 3799. Reviewed by Skip Montanaro.
* Create the dbm package from PEP 3108. #2881.Georg Brandl2008-05-261-0/+81