summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dbm.py
Commit message (Collapse)AuthorAgeFilesLines
* Raise statement normalization in Lib/test/.Collin Winter2007-08-291-1/+1
|
* The dbm module should use bytes for keys. This makes test_shelve pass.Guido van Rossum2007-08-141-3/+3
|
* Remove the ability to slice/index on exceptions per PEP 352.Brett Cannon2007-02-271-1/+1
|
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-1/+1
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* SF patch 1631942 by Collin Winter:Guido van Rossum2007-01-101-1/+2
| | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block
* Don't use a fixed temporary name (gdbm).Guido van Rossum2006-08-251-2/+2
| | | | | Don't use our own temp name creation (dbm). Should be backported to 2.5.
* Get rid of dict.has_key(). Boy this has a lot of repercussions!Guido van Rossum2006-08-181-1/+1
| | | | | | Not all code has been fixed yet; this is just a checkpoint... The C API still has PyDict_HasKey() and _HasKeyString(); not sure if I want to change those just yet.
* Skip test_dbm if we can't write to the fileNeal Norwitz2002-11-021-31/+43
| | | | | Cleanup (remove) the file(s) after we are done with the test. (Fixes problem on snake farm)
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Check that f.keys() == [] right after creation -- this prevents bugsGuido van Rossum2001-03-221-1/+2
| | | | like the one I just fixed to come back and haunt us.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Fix up the cleanup of the temporary DB so it works for BSD DB'sFred Drake2000-09-181-4/+12
| | | | compatibility layer as well as "classic" ndbm.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-2/+2
|
* Many scripts, but small changes. Update the way the scripts obtain theRoger E. Masse1996-12-201-1/+6
| | | | | | | | | | | | | | | | 'verbose' flag ala GvR updated test harness architecture. Old way: verbose = 0 if __name__ == '__main__': verbose = 1 New way: from test_support import verbose Some other small readablility and functionality updates.
* Added a test script for dbmmodule.c and added it to testall.py andRoger E. Masse1996-12-101-0/+29
updated testall.out