summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_b2.py
Commit message (Collapse)AuthorAgeFilesLines
* Combine test_b1.py and test_b2.py into test_builtin.py,Walter Dörwald2003-01-191-369/+0
| | | | | | | | port the tests to PyUnit and add many tests for error cases. This increases code coverage in Python/bltinmodule.c from 75% to 92%. (From SF patch #662807, with assert_(not fcmp(x, y)) replaced with assertAlmostEqual(x, y) where possible)
* More changes of DeprecationWarning to FutureWarning.Guido van Rossum2002-08-141-1/+1
|
* Shut up warnings about hex()/oct() that can't be avoided.Guido van Rossum2002-08-121-0/+4
|
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Skip Montanaro's patch, SF 559833, exposing xrange type in builtins.Raymond Hettinger2002-06-051-0/+5
| | | | | Also, added more regression tests to cover the new type and test its conformity with range().
* SF bug 555042: zip() may trigger MemoryError.Tim Peters2002-05-121-1/+11
| | | | | NOT a bugfix candidate: this is a fix to an optimization introduced in 2.3.
* Remove all tests that rely on deprecated-in-2.2 features of xrange objects.Fred Drake2002-05-021-21/+0
| | | | | "What's New in Python 2.2" documented that these would be removed in Python 2.3.
* Added regression tests for xrange object attributes.Fred Drake2002-05-021-0/+23
| | | | See SF bug #551285.
* SF patch #523169, by Samuele Pedroni.Guido van Rossum2002-02-261-1/+3
| | | | | | There were never tests for the fact that list() always returns a *new* list object, even when the argument is a list, while tuple() may return a reference to the argument when it is a tuple. Now there are.
* SF Patch #494876, test invalid parameters to pow()Neal Norwitz2001-12-291-0/+20
|
* Align the number of %s with the number of format arguments.Finn Bock2001-12-071-2/+2
| | | | This closes patch "[ #490330 ] String format bug in test_b2."
* New restriction on pow(x, y, z): If z is not None, x and y must be ofTim Peters2001-09-031-8/+19
| | | | | integer types, and y must be >= 0. See discussion at http://sf.net/tracker/index.php?func=detail&aid=457066&group_id=5470&atid=105470
* Add tests for getattr() and hasattr() with non-string argsJeremy Hylton2001-07-301-0/+6
|
* Rip out tests for xrange() features no longer supported.Guido van Rossum2001-07-051-14/+0
|
* Generalize zip() to work with iterators.Tim Peters2001-05-061-2/+2
| | | | | | | | NEEDS DOC CHANGES. More AttributeErrors transmuted into TypeErrors, in test_b2.py, and, again, this strikes me as a good thing. This checkin completes the iterator generalization work that obviously needed to be done. Can anyone think of others that should be changed?
* Now that Marc-Andre has retracted unistr(), remove the tests.Guido van Rossum2001-01-191-11/+0
|
* 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.
* This patch adds a new builtin unistr() which behaves like str()Marc-André Lemburg2001-01-171-0/+11
| | | | | | | | | | except that it always returns Unicode objects. A new C API PyObject_Unicode() is also provided. This closes patch #101664. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Update the code to better reflect recommended style:Fred Drake2000-12-121-98/+98
| | | | | Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
* Added test cases to detect regression on SourceForge bug #121965.Fred Drake2000-11-081-0/+14
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-82/+82
|
* Added a zip() test where one of the arguments is an instance whoseBarry Warsaw2000-10-011-0/+12
| | | | class has no __getitem__(). This raises an AttributeError.
* Fixed the error reporting (raise of TestFailed) for the zip() andBarry Warsaw2000-09-191-2/+2
| | | | zip(None) tests. Found by Finn Bock a while ago.
* Added testsuite for new zip() builtin.Barry Warsaw2000-08-031-0/+36
|
* Revise tests to support str(<long int object>) not appending "L".Fred Drake1999-12-231-1/+1
|
* Change the last 4-space indent into a 1-tab indent.Guido van Rossum1998-05-221-1/+1
|
* The reload(sys) test no longer works due to changes in the importGuido van Rossum1997-08-021-4/+4
| | | | semantics.
* Allow oct() result for 64-bit machines.Guido van Rossum1997-06-061-1/+2
|
* updated the oct(-100) test since oct() of a signed literal has changed.Barry Warsaw1997-01-131-1/+1
|
* test for specific bug in vars()Guido van Rossum1995-08-111-0/+9
|
* Test new __import__ module, test reload of built-in module, testGuido van Rossum1994-12-301-2/+2
| | | | has_key() on empty dictionary
* more complete tests of built-in functionsGuido van Rossum1994-11-101-2/+42
|
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-0/+19
|
* * test_*.py: new lambda syntax (also affects tests for filter, map,Guido van Rossum1993-11-301-4/+5
| | | | | | | | | | reduce) * ftplib.py: added default callback for retrlines; added dir() method * ftplib.py: don't return self in self.connect(); added hack so that if 'CDUP' is not understood, 'CWD ..' is tried. * ftplib.py: second method called init() should have been called connect(); if __init__ sees more than one argument, it will also try to login().
* * string.py: added rindex(), rfind(); changed index() to interpretGuido van Rossum1993-11-081-0/+10
| | | | | | | | | | | negative start indices starting from the right. * ftplib.py: debug() -> set_debuglevel(); change demo to use __init__(). * os.py: added execl, execlp, and execvp. * lambda.py: removed (now that we have built-in map, reduce, bagof, lambda) * test_b{1,2}.py, testall.out: added tests for bagof, lambda, map, reduce * commands.py: use os, not posix * test_grammar.py: make it easy to disable non-portable int overflow tests * dis.py: don't abuse range()
* * Fix bug in tzparse.py for DST timezoneGuido van Rossum1993-03-291-0/+35
| | | | | | | * Added whatis command to pdb.py * new module GET.py (GL definitions from <gl/get.h>) * rect.py: is_empty takes a rect as argument, not two points. * Added tests for builtin round() [XXX not yet complete!]
* * os.py: _exit doesn't exist in all variations of posixGuido van Rossum1993-01-261-12/+12
| | | | * Added fcmp() to test_support.py and use it in test*.py
* Added some new tests and two new files for testing: test_types.pyGuido van Rossum1992-11-271-0/+16
| | | | | (testing operations on built-in types) and autotest.py (automatic regression testing).
* Initial revisionGuido van Rossum1992-01-271-0/+130