summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_types.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a check that the bug Jeremy just fixed in _PyTuple_Resize() isGuido van Rossum2002-06-211-0/+5
| | | | | | fixed. (Jeremy, how did you discover that?)
* Fix the bug described inMichael W. Hudson2002-06-191-0/+8
| | | | | | | | | http://mail.python.org/pipermail/python-dev/2002-June/025461.html with test cases. Also includes extended slice support for arrays, which I thought I'd already checked in but obviously not.
* Test exceptional conditions in list.sort()Neal Norwitz2002-06-131-0/+15
|
* Fix for problem reported by Neal Norwitz. Tighten up calculation ofMichael W. Hudson2002-06-111-0/+2
| | | | slicelength. Include his test case.
* This is my nearly two year old patchMichael W. Hudson2002-06-111-0/+72
| | | | | | | | | [ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
* Buffer-object repitition and concatenation has worked all along; add a testFred Drake2002-05-021-0/+6
| | | | to make avoid regression.
* Whitespace normalization.Tim Peters2002-04-161-1/+1
|
* Add Raymond Hettinger's d.pop(). See SF patch 539949.Guido van Rossum2002-04-121-0/+15
|
* Add more tests for built-in types. Add tests for buffer objects.Neil Schemenauer2002-03-241-0/+118
| | | | Closes SF patch 494871.
* Whitespace normalization.Tim Peters2001-12-201-1/+0
|
* Additional coverage tests by Neil Norwitz.Guido van Rossum2001-12-111-0/+9
| | | | (SF patch #491418, #491420, #491421.)
* Change new tests to use integer division (// instead of /).Tim Peters2001-12-051-3/+3
|
* SF bug #488480: integer multiply to return -max_int-1.Tim Peters2001-12-041-0/+26
| | | | | | | int_mul(): new and vastly simpler overflow checking. Whether it's faster or slower will likely vary across platforms, favoring boxes with fast floating point. OTOH, we no longer have to worry about people shipping broken LONG_BIT definitions <0.9 wink>.
* Add a bunch of tests for extended dict.update() where the argument isBarry Warsaw2001-06-261-0/+70
| | | | | a non-dictionary mapping object. Include tests for several expected failure modes.
* Implement, test and document "key in dict" and "key not in dict".Guido van Rossum2001-04-201-0/+4
| | | | | | | | | I know some people don't like this -- if it's really controversial, I'll take it out again. (If it's only Alex Martelli who doesn't like it, that doesn't count as "real controversial" though. :-) That's why this is a separate checkin from the iterators stuff I'm about to check in next.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-75/+75
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Added test for {}.popitem().Guido van Rossum2000-12-121-0/+24
|
* Backing out my changes.Moshe Zadka2000-11-301-6/+0
| | | | Improved version coming soon to a Source Forge near you!
* Added .first{item,value,key}() to dictionaries.Moshe Zadka2000-11-301-0/+6
| | | | | Complete with docos and tests. OKed by Guido.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-13/+13
|
* Barry's patch to test the new setdefault() method.Guido van Rossum2000-08-081-0/+12
|
* Add tests to exercise sequence operations (multiplication, indexing,Andrew M. Kuchling2000-02-231-0/+25
| | | | slicing) using long integers
* Add tests for list self-assigns. (Sorry, this should have been hereGuido van Rossum1998-07-161-0/+13
| | | | before JPython 1.0 came out.)
* Added some tests to make sure that long->int conversions nearGuido van Rossum1998-05-261-0/+12
| | | | sys.maxint and near -sys.maxint-1 work correctly.
* Add test for core dump -- make sure it doesn't come back!Guido van Rossum1998-02-251-0/+5
|
* Added separate tests for {}.get().Guido van Rossum1997-10-201-0/+3
|
* Added tests of dict.get()Barry Warsaw1997-10-201-0/+6
|
* Added tests for dict.clear(), dict.update(), dict.copy().Guido van Rossum1997-06-021-0/+9
|
* Test new __import__ module, test reload of built-in module, testGuido van Rossum1994-12-301-0/+1
| | | | has_key() on empty dictionary
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-0/+6
|
* * profile.py, pdb.py: added help() functionGuido van Rossum1993-10-221-0/+3
| | | | | | * builtin.py: b/w compat for builtin -> __builtin__ name change * string.py: added atof() and atol() and corresponding exceptions * test_types.py: added test for list sort with user comparison function
* * ftplib.py: added abort() command (sends oob data).Guido van Rossum1993-05-241-1/+1
| | | | | | * Several modules: change "class C(): ..." to "class C: ...". * flp.py: support for frozen forms. * Added string.find() which is like index but returns -1 if not found
* * Add some more tests for numbersGuido van Rossum1993-01-211-0/+21
| | | | * mainloop.py: don't use select unless absolutely necessary (for Mac)
* Added some new tests and two new files for testing: test_types.pyGuido van Rossum1992-11-271-0/+151
(testing operations on built-in types) and autotest.py (automatic regression testing).