summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_b2.py
Commit message (Collapse)AuthorAgeFilesLines
* 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