summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* test_mktime(): Removed. This wasn't really testing anything usefulBarry Warsaw2002-04-161-6/+0
| | | | | | (or platform independent). Closes SF bug #460357. Bug fix candidate.
* Whitespace normalization, while using non-whitespace literals forBarry Warsaw2002-04-161-26/+26
| | | | intended whitespace.
* Expect test_email_codecs to be skipped -- few users or developers willGuido van Rossum2002-04-161-0/+1
| | | | have the needed optional Japanese codecs installed.
* Apparently 3 of the tests here rely on trailing whitespace and/or hardTim Peters2002-04-161-26/+26
| | | | | tab characters, so reverting the whitespace normalization. Barry, please repair this.
* Fewer deprecation warnings.Tim Peters2002-04-161-0/+5
|
* resetwarnings(): Remove extra space from docstring guts.Tim Peters2002-04-161-1/+1
|
* Whitespace normalization.Tim Peters2002-04-1623-88/+84
|
* resetwarnings(): change the docstring to reflect what the codeTim Peters2002-04-161-1/+1
| | | | | | | actually does. Note that the description in the Library Reference manual is already accurate. Bugfix candidate.
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-169-16/+34
| | | | order in which the tests are normally run.
* OK, don't call resetwarnings().Tim Peters2002-04-161-2/+0
|
* It makes more sense to call resetwarnings() after every test runs thanTim Peters2002-04-164-9/+4
| | | | to keep doing that in every test that wants to filter a warning.
* I expect test_univnewlines to be skipped on Windows. I expect thisTim Peters2002-04-151-0/+1
| | | | | because it *is* skipped. I'm not entirely sure it should be skipped, but figuring that out would take actual thought <wink>.
* Reduce the number of test-suite DeprecationWarnings; start addingTim Peters2002-04-153-3/+12
| | | | resetwarnings() calls too.
* test_main(): Added this so the test can actually get run under theBarry Warsaw2002-04-152-21/+20
| | | | | regrtest framework. Keep the original standalone-unittest scaffolding (i.e. suite() and __main__).
* parseaddr(): Don't use rfc822.parseaddr() because this now implies aBarry Warsaw2002-04-151-4/+3
| | | | | | | | double call to AddressList.getaddrlist(), and /that/ always returns an empty list for the second and subsequent calls. Instead, instantiate an AddressList directly, and get the parsed addresses out of the addresslist attribute.
* ehlo(): A proper fix for SF bug #498572. RFC 1869 describes ESMTPBarry Warsaw2002-04-151-1/+5
| | | | | | | | | | | | | which requires that if there are ehlo parameters returned with an ehlo keyword (in the response to EHLO), the keyword and parameters must be delimited by an ASCII space. Thus responses like 250-AUTH=LOGIN should be ignored as non-conformant to the RFC (the `=' isn't allowed in the ehlo keyword). This is a bug fix candidate.
* Apply the second version of SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-154-10/+29
| | | | | | | | | | Add a method zfill to str, unicode and UserString and change Lib/string.py accordingly. This activates the zfill version in unicodeobject.c that was commented out and implements the same in stringobject.c. It also adds the test for unicode support in Lib/string.py back in and uses repr() instead() of str() (as it was before Lib/string.py 1.62)
* SF bug #541883 (Vincent Fiack).Guido van Rossum2002-04-151-0/+6
| | | | | | | A stupid bug in object_set_class(): didn't check for value==NULL before checking its type. Bugfix candidate.
* Add exit as alias for quit, as the easiest way to address SF bugGuido van Rossum2002-04-151-1/+4
| | | | | | #543674. Bugfix candidate.
* SF bug #543318 (Frank J. Tobin).Guido van Rossum2002-04-151-1/+1
| | | | | | | In DatagramRequestHandler.setup(), the wfile initialization should be StringIO.StringIO(), not StringIO.StringIO(slf.packet). Bugfix candidate (all the way back to Python 1.5.2 :-).
* Fix from SF bug #541980 (Jacques A. Vidrine).Guido van Rossum2002-04-151-1/+4
| | | | | | | When os.stat() for a file raises OSError, turn it into IOError per documentation. Bugfix candidate.
* SF bug 543840: complex(string) accepts strings with \0Tim Peters2002-04-141-0/+13
| | | | | | | complex_subtype_from_string(): this stopped parsing at the first 0 byte, as if that were the end of the input string. Bugfix candidate.
* Test suite for universal newline support.Jack Jansen2002-04-141-0/+114
|
* Mass checkin of universal newline support.Jack Jansen2002-04-142-2/+2
| | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
* Patch #542569: tp_print tp_repr tp_str in test_bool.py.Martin v. Löwis2002-04-141-1/+18
|
* BDFL agreed with Tim: rehabilitate randint().Neal Norwitz2002-04-131-2/+0
|
* Add pop() to UserDict.Guido van Rossum2002-04-131-0/+2
|
* Partially implement SF feature request 444708.Guido van Rossum2002-04-132-3/+15
| | | | | | | | | | | | | Add optional arg to string methods strip(), lstrip(), rstrip(). The optional arg specifies characters to delete. Also for UserString. Still to do: - Misc/NEWS - LaTeX docs (I did the docstrings though) - Unicode methods, and Unicode support in the string methods.
* AddrlistClass -> AddressListBarry Warsaw2002-04-121-2/+2
|
* AddrlistClass -> AddressListBarry Warsaw2002-04-121-2/+2
|
* I am mad. This test never worked!Guido van Rossum2002-04-121-16/+14
| | | | | | | | | | | | | | | | | | | | | | The test function's signature should be test(methodname, input, output, *args) but the output argument was omitted. This caused all tests to fail, because the expected output was passed as the initial argument to the method call. But because of the way the test works (it compares the results for a regular string to the results for a UserString instance with the same value, and it's OK if both raise the same exception) the test never failed! I've fixed this, and also cleaned up a few warts in the verbose output. Finally, I've made it possible to run the test stand-alone in verbose mode by passing -v as a command line argument. Now, the test will report failure related to zfill. That's not my fault, that's a legitimate problem: the string_tests.py file contains a test for the zfill() method (just added) but this method is not implemented. The responsible party will surely fix this soon now.
* Add Raymond Hettinger's d.pop(). See SF patch 539949.Guido van Rossum2002-04-121-0/+15
|
* Clean up the "all" support for -u.Fred Drake2002-04-111-1/+2
|
* Guido sez to remove the deprecation warning for a year.Fred Drake2002-04-111-5/+0
| | | | The deprecation is now listed in PEP 4.
* Since xmllib is deprecated now, suppress the DeprecationWarning its testTim Peters2002-04-111-1/+5
| | | | module necessarily raises.
* Ignore more deprecation warnings.Tim Peters2002-04-111-4/+6
|
* Stop sucking up xmllib -- it's deprecated.Tim Peters2002-04-111-1/+0
|
* I don't expect test_email_codecs to run on Windows.Tim Peters2002-04-111-0/+1
|
* Added the resource name "all" to enable all of the optional resource uses.Fred Drake2002-04-111-2/+11
| | | | This is nice for use with "make TESTOPTS='-u all' test".
* Improve coverage of Objects/weakrefobject.c.Fred Drake2002-04-111-0/+16
|
* Add deprecation warning to 'pre' moduleAndrew M. Kuchling2002-04-101-0/+6
|
* Remove support for importing 'pre' moduleAndrew M. Kuchling2002-04-101-14/+2
|
* Sync'ing with standalone email package 2.0.1. This adds support forBarry Warsaw2002-04-1020-144/+2210
| | | | | | | | | non-us-ascii character sets in headers and bodies. Some API changes (with DeprecationWarnings for the old APIs). Better RFC-compliant implementations of base64 and quoted-printable. Updated test cases. Documentation updates to follow (after I finish writing them ;).
* Added test case for UTF-8 encoding bug #541828.Marc-André Lemburg2002-04-101-0/+16
|
* Use random instead of whrandomAndrew M. Kuchling2002-04-101-3/+3
|
* Add deprecation warnings for modules as documentedNeal Norwitz2002-04-102-0/+9
|
* Add a deprecation warning to reflect the documented deprecation of theFred Drake2002-04-101-0/+5
| | | | whrandom module. (The deprecation was effective in Python 2.1.)
* Update docstring to reflect code change to boolNeal Norwitz2002-04-091-1/+1
|
* Remove unconditional debugging prints.Thomas Heller2002-04-091-3/+0
|
* Set the warn_dir option to 0 before running the install command.Thomas Heller2002-04-092-0/+2
| | | | | | | This suppresses bogus warnings about modules installed into a directory not in sys.path. Bugfix candidate.