summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm_dumb.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)Christian Heimes2022-06-061-0/+2
| | | WASI does not have the ``chmod(2)`` syscall yet.
* bpo-40563: Support pathlike objects on dbm/shelve (GH-21849)Henry-Joseph Audéoud2021-09-101-0/+9
| | | | Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145)Inada Naoki2021-04-041-1/+1
| | | | | | | | | | | | | | | | | | | * test_asyncio * test_bz2 * test_math * test_cmath * test_cmd_line * test_cmd_line_script * test_compile * test_contextlib * test_profile * ctypes/test/test_find * test_multiprocessing * test_configparser * test_csv * test_dbm_dumb * test_decimal * test_difflib * os.fdopen() calls io.text_encoding() to emit EncodingWarning for right place.
* bpo-40275: Use new test.support helper submodules in tests (GH-20849)Hai Shi2020-06-251-5/+7
|
* bpo-22831: Use "with" to avoid possible fd leaks in tests (part 1). (GH-10928)Serhiy Storchaka2019-03-051-80/+69
|
* Clean up code which checked presence of os.{stat,lstat,chmod} (#11643)Anthony Sottile2019-02-251-2/+0
|
* bpo-33106: change dbm key deletion error for readonly file from KeyError to ↵Xiang Zhang2018-12-121-2/+2
| | | | | | dbm.error (#6295)
* bpo-33383: Fix crash in get() of the dbm.ndbm database object. (#6630)Serhiy Storchaka2018-04-291-0/+9
|
* bpo-32922: dbm.open() now encodes filename with the filesystem encoding. ↵Serhiy Storchaka2018-02-261-0/+15
| | | | (GH-5832)
* bpo-32749: Make dbm.dumb databases more cosistent with other dbm databases. ↵Serhiy Storchaka2018-02-051-21/+14
| | | | (#5497)
* Remove unused imports.Serhiy Storchaka2016-12-161-1/+0
|
* Issue #28847: A deprecation warning is now emitted if the index file is missedSerhiy Storchaka2016-12-071-0/+14
| | | | | and recreated in the 'r' and 'w' modes (will be an error in future Python releases).
* Issue #28847: dbm.dumb now supports reading read-only files and no longerSerhiy Storchaka2016-12-071-0/+16
|\ | | | | | | writes the index file when it is not changed.
| * Issue #28847: dbm.dumb now supports reading read-only files and no longerSerhiy Storchaka2016-12-071-0/+16
| | | | | | | | writes the index file when it is not changed.
* | Issue #21708: Deprecated dbm.dumb behavior that differs from common dbmSerhiy Storchaka2016-07-061-1/+26
|/ | | | | behavior: creating a database in 'r' and 'w' modes and modifying a database in 'r' mode.
* Issue #22885: Fixed arbitrary code execution vulnerability in the dbm.dumbSerhiy Storchaka2015-02-151-0/+9
|\ | | | | | | module. Original patch by Claudiu Popa.
| * Issue #22885: Fixed arbitrary code execution vulnerability in the dbm.dumbSerhiy Storchaka2015-02-151-0/+9
| | | | | | | | module. Original patch by Claudiu Popa.
* | Issue #18039: dbm.dump.open() now always creates a new database when theSerhiy Storchaka2014-06-101-0/+8
|/ | | | flag has the value 'n'. Patch by Claudiu Popa.
* make operations on closed dumb databases raise a consistent exception ↵Benjamin Peterson2014-04-261-4/+25
| | | | | | (closes #19385) Patch by Claudiu Popa.
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-1/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
| * Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-4/+2
| |
* | Close #19282: Native context management in dbmNick Coghlan2013-11-171-0/+13
| |
* | Issue #18702: All skipped tests now reported as skipped.Serhiy Storchaka2013-11-031-4/+2
|/
* #17082: test_dbm* now work with unittest test discovery. Patch by Zachary Ware.Ezio Melotti2013-03-011-9/+1
|
* Properly close files in test_dbm_dumb.Brett Cannon2010-10-291-2/+4
|
* convert shebang lines: python -> python3Benjamin Peterson2010-03-111-1/+1
|
* 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-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.
* Make dbm.dumb encode strings as UTF-8. Also fix it so it accepts bytes andBrett Cannon2008-11-211-15/+31
| | | | | | strings. Closes issue #3799.
* Create the dbm package from PEP 3108. #2881.Georg Brandl2008-05-261-0/+185