summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Patch #639112: fixes for None locale and tz.Martin v. Löwis2002-11-271-56/+141
|
* Bring UserDict in-sync with changes to dict.Raymond Hettinger2002-11-271-0/+13
| | | | | | Constructor accepts optional keyword arguments after a optional items list. Add fromkeys() as an alternate constructor from an iterable over keys. Expand related unittests.
* SF Patch 643443. Added dict.fromkeys(iterable, value=None), a classRaymond Hettinger2002-11-271-0/+28
| | | | method for constructing new dictionaries from sequences of keys.
* The MRO conflict error message depends on dictionary hash order.Guido van Rossum2002-11-271-4/+4
| | | | Avoid depending on this in the test.
* Add a way to say "use any resource except A". For example, to runFred Drake2002-11-261-3/+14
| | | | | allow the use of any resource except bsddb, give the option "-uall,-bsddb".
* This is my patch:Michael W. Hudson2002-11-261-0/+89
| | | | | | | | | | | | [ 635933 ] make some type attrs writable Plus a couple of extra tests beyond what's up there. It hasn't been as carefully reviewed as it perhaps should, so all readers are encouraged, nay exhorted, to give this a close reading. There are still a couple of oddities related to assigning to __name__, but I intend to solicit python-dev's opinions on these.
* A tweaked version of Jeremy's patch #642489, to produce better errorGuido van Rossum2002-11-251-0/+31
| | | | | messages about MRO conflicts. (Tweaks here: don't print the message, but compare it with an expected string.)
* SF 643115: Set._update() had a special case for dictionaries which allowedRaymond Hettinger2002-11-251-0/+3
| | | | | non-true values to leak in. This threw-off equality testing which depends on the underlying dictionaries having both the same keys and values.
* Fix typo in comment.Walter Dörwald2002-11-251-1/+1
|
* Regenerate from Unicode 3.2.0 to include all First/Last ranges.Martin v. Löwis2002-11-241-1/+1
|
* Reduced memory burden by iterating over the normalization test inputTim Peters2002-11-242-4/+2
| | | | file directly (instead of sucking it all into a list of lines first).
* Fiddled things so that test_normalization is expected to be skipped ifTim Peters2002-11-242-39/+60
| | | | and only if the test input file doesn't exist.
* Skip test_normalization on Windows until it's at least clear why theTim Peters2002-11-241-0/+1
| | | | | data it needs doesn't exist in the project. If it's a huge file, maybe the test should be changed to be one of the -u thingies.
* Split long line.Tim Peters2002-11-241-2/+3
| | | | | XXX If NormalizationTest.txt is required to run this test, why isn't it checked into the project?
* Whitespace normalization.Tim Peters2002-11-243-7/+5
|
* Patch #626485: Support Unicode normalization.Martin v. Löwis2002-11-231-0/+68
|
* Update character names.Martin v. Löwis2002-11-231-3/+3
|
* Implement names for CJK unified ideographs. Add name to KeyError output.Martin v. Löwis2002-11-232-6/+19
| | | | Verify that the lookup for an existing name succeeds.
* Add test cases for Hangul syllables. Update output.Martin v. Löwis2002-11-232-1/+26
|
* Remove duplicate testNeal Norwitz2002-11-231-2/+0
|
* Patch #642500 with slight modifications: allow keyword arguments inJust van Rossum2002-11-231-11/+12
| | | | | | | dict() constructor. Example: >>> dict(a=1, b=2) {'a': 1, 'b': 2} >>>
* Two bugs:Fred Drake2002-11-221-7/+7
| | | | | - assertRaises() wasn't being called correctly - test_warning() no longer applies
* Move Windows Python away from bsddb 1.85 and toward Sleepycat's latest.Tim Peters2002-11-221-0/+1
| | | | | | | The bsddb subproject is gone. The _bsddb subproject is new. There are problems here, but I'm out of time to work on this now. If anyone can address an XXX comment or two in readme.txt, please do!
* Implement dict() style constructor.Raymond Hettinger2002-11-221-0/+3
| | | | | | | | | | | Already supported dict() and dict(mapping). Now supports dict(itemsequence) and Just van Rossum's new syntax for dict(keywordargs). Also, added related unittests. The docs already promise dict-like behavior so no update is needed there.
* Patch #633547: Support plural forms. Do TODOs in test suite.Martin v. Löwis2002-11-212-157/+248
|
* Change int() so that passing a string, unicode, float or long argumentWalter Dörwald2002-11-193-22/+28
| | | | | | | that is outside the integer range no longer raises OverflowError, but returns a long object instead. This fixes SF bug http://www.python.org/sf/635115
* Importing test suite from bsddb3 3.4.0 (with modifications).Martin v. Löwis2002-11-192-1/+64
|
* check for str.__mod__Neil Schemenauer2002-11-181-0/+3
|
* check for unicode.__mod__Neil Schemenauer2002-11-181-0/+1
|
* Improve DictMixin.Raymond Hettinger2002-11-181-6/+5
| | | | | | | | | | | Replaced docstring with comments. Prevents subclass contamination. Added the missing __cmp__() method and a test for __cmp__(). Used try/except style in preference to has_key() followed by a look-up. Used iteritem() where possible to save creating a long key list and to save redundant lookups. Expanded .update() to look for the most helpful methods first and gradually work down to a mininum expected interface. Expanded documentation to be more clear on how to use the class.
* Style guide reformats. I saw this test fail on a very heavily loadedTim Peters2002-11-151-6/+9
| | | | | | Win98SE box, but whatever the cause, it had scrolled off the DOS box. (There was just the "test_queue failed" summary at the end of the regrtest run.)
* SF patch #520382: Expand shelve.py to have a full dictionary interfaceRaymond Hettinger2002-11-151-0/+98
| | | | | and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
* Fix or disable some tests that were affected by the new C3 MROGuido van Rossum2002-11-141-20/+79
| | | | algorithm, and add some new tests for the C3 algorithm.
* This uses only one temp file at a time, so use test_support.TESTFN asTim Peters2002-11-141-2/+2
| | | | | the name instead of enduring nanny "security warnings" from tempfile.mktemp().
* Add some simple tests of the persistence hooks.Jeremy Hylton2002-11-131-0/+35
|
* Remove inst_persistent_id() WANNI (we ain't never needed it).Jeremy Hylton2002-11-131-1/+23
| | | | Add some simple tests of the persistence hooks.
* remove debugging printJeremy Hylton2002-11-131-2/+0
|
* Add getstate and setstate implementation to concrete set classes.Jeremy Hylton2002-11-131-1/+9
|
* Fix SF # 635969, No error "not all arguments converted"Neal Norwitz2002-11-121-0/+8
| | | | | | | | | When mwh added extended slicing, strings and unicode became mappings. Thus, dict was set which prevented an error when doing: newstr = 'format without a percent' % string_value This fix raises an exception again when there are no formats and % with a string value.
* SF patch 637176: list.sort crasherTim Peters2002-11-122-2/+31
| | | | | | | | | | | Armin Rigo's Draconian but effective fix for SF bug 453523: list.sort crasher slightly fiddled to catch more cases of list mutation. The dreaded internal "immutable list type" is gone! OTOH, if you look at a list *while* it's being sorted now, it will appear to be empty. Better than a core dump.
* Allow both string and Unicode objects in levels.Martin v. Löwis2002-11-091-2/+2
|
* Don't try to convert the test filename to Unicode with -U.Martin v. Löwis2002-11-091-1/+6
|
* I already forgot what I changed -- it wasn't important <wink>.Tim Peters2002-11-091-2/+0
|
* OK -- all tests pass on Windows now. The rest were due to 3 moreTim Peters2002-11-091-22/+5
| | | | binary-vs-text-mode screwups.
* More tests run on Windows now. Something is still wrong here, but noTim Peters2002-11-091-27/+34
| | | | idea what. Added liberal XXX explanations for the next guy.
* Many changes to get this to pass on Windows, and to make it easier toTim Peters2002-11-091-11/+45
| | | | | | | | figure out what the code was doing. The fixes were a combination of closing open files before deletion, opening files in binary mode, and plain skipping things that can't work on Windows (BaseTest.decompress uses a process gimmick that doesn't exist on Windows, and, even if it did, assumes a "bunzip2" executable is on PATH).
* Whitespace normalization.Tim Peters2002-11-097-296/+296
|
* Comment out the test docstrings so we can at least tell which tests areTim Peters2002-11-091-28/+28
| | | | failing.
* Whitespace normalization.Tim Peters2002-11-091-16/+16
|
* Open at least one binary file in binary mode. This allows a few of theTim Peters2002-11-091-1/+1
| | | | bz2 tests to pass on Windows; most are still failing.