summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shelve.py
Commit message (Collapse)AuthorAgeFilesLines
* gh-84623: Remove unused imports in tests (#93772)Victor Stinner2022-06-131-2/+0
|
* bpo-45502: Fix test_shelve (GH-29003)Serhiy Storchaka2021-10-221-58/+46
| | | | Run test_shelve with all underlying dbm implementations and pickle protocols. Also make test_shelve discoverable.
* bpo-40563: Support pathlike objects on dbm/shelve (GH-21849)Henry-Joseph Audéoud2021-09-101-14/+18
| | | | Co-authored-by: Hakan Çelik <hakancelik96@outlook.com>
* bpo-34204: Use pickle.DEFAULT_PROTOCOL in shelve (GH-19639)Zackery Spytz2020-10-291-1/+3
| | | | Use pickle.DEFAULT_PROTOCOL (currently 5) in shelve instead of a hardcoded 3.
* bpo-40275: Use new test.support helper submodules in tests (GH-21315)Hai Shi2020-07-061-2/+3
|
* bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929)Serhiy Storchaka2019-03-051-25/+20
|
* Issue #27431: Update default protocol version in shelve.Shelf() documentationBerker Peksag2016-07-011-0/+4
| | | | shelve.open() documentation was updated in f351fb7ea179.
* Issue #13896: Make shelf instances work with 'with' as context managers.Andrew Svetlov2012-10-061-0/+13
| | | | Original patch by Filip Gruszczyński.
* Normalize the encoding names for Latin-1 and UTF-8 toMarc-André Lemburg2011-02-251-2/+2
| | | | | | | | | | 'latin-1' and 'utf-8'. These are optimized in the Python Unicode implementation to result in more direct processing, bypassing the codec registry. Also see issue11303.
* Fix imports from collections.abcRaymond Hettinger2011-02-231-1/+1
|
* #7905: Actually respect the keyencoding parameter to shelve.Shelf.Georg Brandl2010-12-041-0/+13
|
* Merged revisions 78141-78142 via svnmerge fromR. David Murray2010-02-111-0/+13
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78141 | r.david.murray | 2010-02-10 20:38:42 -0500 (Wed, 10 Feb 2010) | 6 lines Issue 5754: tweak shelve doc wording to make it clearer that even when writeback=True values are written to the backing store when assigned to the shelf. Add test to confirm that this happens. Doc patch and added test by Robert Lehmann. I also fixed the cross references to the sync and close methods. ........ r78142 | r.david.murray | 2010-02-10 20:56:42 -0500 (Wed, 10 Feb 2010) | 3 lines Improve issue 7835 fix per MAL to handle the case that the module dictionary has also been cleared. ........
* Merged revisions 65209-65216,65225-65226,65233,65239,65246-65247,65255-65256 ↵Benjamin Peterson2008-07-311-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r65209 | raymond.hettinger | 2008-07-23 19:08:18 -0500 (Wed, 23 Jul 2008) | 1 line Finish-up the partial conversion from int to Py_ssize_t for deque indices and length. ........ r65210 | raymond.hettinger | 2008-07-23 19:53:49 -0500 (Wed, 23 Jul 2008) | 1 line Parse to the correct datatype. ........ r65211 | benjamin.peterson | 2008-07-23 21:27:46 -0500 (Wed, 23 Jul 2008) | 1 line fix spacing ........ r65212 | benjamin.peterson | 2008-07-23 21:31:28 -0500 (Wed, 23 Jul 2008) | 1 line fix markup ........ r65213 | benjamin.peterson | 2008-07-23 21:45:37 -0500 (Wed, 23 Jul 2008) | 1 line add some documentation for 2to3 ........ r65214 | raymond.hettinger | 2008-07-24 00:38:48 -0500 (Thu, 24 Jul 2008) | 1 line Finish conversion from int to Py_ssize_t. ........ r65215 | raymond.hettinger | 2008-07-24 02:04:55 -0500 (Thu, 24 Jul 2008) | 1 line Convert from long to Py_ssize_t. ........ r65216 | georg.brandl | 2008-07-24 02:09:21 -0500 (Thu, 24 Jul 2008) | 2 lines Fix indentation. ........ r65225 | benjamin.peterson | 2008-07-25 11:55:37 -0500 (Fri, 25 Jul 2008) | 1 line teach .bzrignore about doc tools ........ r65226 | benjamin.peterson | 2008-07-25 12:02:11 -0500 (Fri, 25 Jul 2008) | 1 line document default value for fillvalue ........ r65233 | raymond.hettinger | 2008-07-25 13:43:33 -0500 (Fri, 25 Jul 2008) | 1 line Issue 1592: Better error reporting for operations on closed shelves. ........ r65239 | benjamin.peterson | 2008-07-25 16:59:53 -0500 (Fri, 25 Jul 2008) | 1 line fix indentation ........ r65246 | andrew.kuchling | 2008-07-26 08:08:19 -0500 (Sat, 26 Jul 2008) | 1 line This sentence continues to bug me; rewrite it for the second time ........ r65247 | andrew.kuchling | 2008-07-26 08:09:06 -0500 (Sat, 26 Jul 2008) | 1 line Remove extra words ........ r65255 | skip.montanaro | 2008-07-26 19:49:02 -0500 (Sat, 26 Jul 2008) | 3 lines Close issue 3437 - missing state change when Allow lines are processed. Adds test cases which use Allow: as well. ........ r65256 | skip.montanaro | 2008-07-26 19:50:41 -0500 (Sat, 26 Jul 2008) | 2 lines note robotparser bug fix. ........
* Create http package. #2883.Georg Brandl2008-05-261-1/+1
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-4/+4
|
* Remove DictMixin which is superceded by collections.MutableMappingRaymond Hettinger2008-02-041-2/+7
|
* Fix this test. How could it ever have worked?!Guido van Rossum2007-08-291-2/+3
|
* applies the better dbm and shelve related unittests. bug 1007 from ↵Gregory P. Smith2007-08-241-9/+11
| | | | larryhastings
* Change shelve to require a bytes-oriented dict asMartin v. Löwis2007-08-111-5/+35
| | | | the underlying storage, and yet provide string keys.
* Use test_support.unlink() instead of os.unlink().Guido van Rossum2007-05-181-4/+3
|
* Fix the cleanup so that we're not left with shelftemp.db.* files.Guido van Rossum2007-05-181-12/+10
| | | | This does nothing to fix the tests though...
* Removed deprecated method arguments from the shelve module.Raymond Hettinger2004-12-051-8/+8
|
* Rename class attribute containing the class to be tested, so the name is theWalter Dörwald2004-06-021-1/+1
| | | | same as for the string and sequence tests.
* Port the dictionary tests from test_types.py to unittest. Collect as muchWalter Dörwald2004-05-311-3/+3
| | | | | | mapping tests as possible in mapping_test.py and reuse the tests in test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py. From SF patch #736962.
* Patch #734231: Update RiscOS support. In particular, correctMartin v. Löwis2003-05-101-1/+1
| | | | riscospath.extsep, and use os.extsep throughout.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-9/+9
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Patch #553171: Add writeback parameter. Also add protocol parameter.Martin v. Löwis2003-04-191-6/+45
|
* SF patch #667730: More DictMixinRaymond Hettinger2003-03-091-2/+47
| | | | | | | | * Adds missing pop() methods to weakref.py * Expands test suite to broaden coverage of objects with a mapping interface. Contributed by Sebastien Keim.
* Whitespace normalization.Tim Peters2002-12-241-1/+1
|
* Add support for binary pickles to the shelve module. In some situationsSkip Montanaro2002-12-081-0/+51
this can result in significantly smaller files. All classes as well as the open function now accept an optional binary parameter, which defaults to False for backward compatibility. Added a small test suite, updated the libref documentation (including documenting the exported classes and fixing a few other nits) and added a note about the change to Misc/NEWS.