summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* A dumb test for the dumdbm module.Guido van Rossum2001-01-182-0/+40
|
* Add test for comparing recursive data types.Guido van Rossum2001-01-181-1/+42
|
* Bite the bullet: use rich comparisons here, too.Guido van Rossum2001-01-181-4/+10
|
* Add test for misbehaving rich comparisons (always returning 0) --Guido van Rossum2001-01-181-1/+23
| | | | these fall back to __cmp__.
* Rich comparison testsGuido van Rossum2001-01-182-0/+364
|
* Whitespace normalization. Leaving tokenize_tests.py alone for now.Tim Peters2001-01-189-45/+42
|
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-1748-51/+54
| | | | 'verify' iff it's used by a test module...
* Marc-Andre must not have run these tests -- they used verify() butGuido van Rossum2001-01-173-3/+5
| | | | | didn't import it. Also got rid of some inconsistent spaces inside parentheses in test_gzip.py.
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-1770-412/+436
| | | | | | | 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.
* Stop creating an unbounded number of "Jack is my hero" files under Windows.Tim Peters2001-01-171-0/+1
| | | | | Not that Jack doesn't deserve them, but saying it so often cheapens the sentiment.
* This patch adds a new builtin unistr() which behaves like str()Marc-André Lemburg2001-01-172-0/+12
| | | | | | | | | | 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.
* Patch #103279: sysconfig.py always looks for versions of files inAndrew M. Kuchling2001-01-171-1/+19
| | | | | | | | sys.prefix + 'config/Makefile'. When building Python for the first time, these files aren't there, so the files from the build tree have to be used instead; this file adds an entry point for specifying that the build tree files should be used. (Perhaps 'set_python_build' should should be preceded with an underscore?)
* Fix a bizarre typo in the helper class ComparableException: theGuido van Rossum2001-01-171-1/+1
| | | | | | | | | | | | | __getattr__() method, which clearly (like the other methods) was intended to pass the __getattr__() call on to the self.err object, mistakenly returned getattr(self, self.err) rather than getattr(self.err, attr). Since self.err is not a string, this always raises a TypeError. Apparently that doesn't bother for the one attribute for which __getattr__() is actually called ('__coerce__'), but it broke the rich comparisons stuff that I'm trying to get into shape, so I'm fixing this now. (I could also simply remove the __getattr__() method, but fixing it seems more in the spirit of what the ComparableException class is trying to do.)
* Changed name of codec to full path name. This allows importingMarc-André Lemburg2001-01-171-1/+1
| | | | the test_charmapcodec test via the test package.
* Whitespace normalization.Tim Peters2001-01-171-7/+7
|
* Use __name__ instead of "test_regex" as the module name in theGuido van Rossum2001-01-171-1/+1
| | | | | warnings.filterwarnings() call. This suppresses the warning when the module is imported with its full name (test.test_regex) too.
* Fix bugs with integer-valued variables when parsing Makefiles. ValuesAndrew M. Kuchling2001-01-161-5/+9
| | | | | | | | | | for done[n] can be integers as well as strings, but the code concatenates them with strings (fixed by adding a str()) and calls string.strip() on them (fixed by rearranging the logic) (Presumably this wasn't noticed previously because parse_makefile() was only called on Modules/Makefile, which contains no integer-valued variables.)
* Modified version of a patch from Jeremy Kloth, to make .get_outputs()Andrew M. Kuchling2001-01-161-1/+5
| | | | | | | produce a list of unique filenames: "While attempting to build an RPM using distutils on Python 2.0, rpm complained about duplicate files. The following patch fixed that problem.
* Make pop_source and push_source available, as documented.Eric S. Raymond2001-01-161-23/+36
|
* Added checks to prevent PyUnicode_Count() from dumping coreMarc-André Lemburg2001-01-162-0/+11
| | | | | | | | | | | | in case the parameters are out of bounds and fixes error handling for .count(), .startswith() and .endswith() for the case of mixed string/Unicode objects. This patch adds Python style index semantics to PyUnicode_Count() indices (including the special handling of negative indices). The patch is an extended version of patch #103249 submitted by Michael Hudson (mwh) on SF. It also includes new test cases.
* bumped SRE version number to 2.1. cleaned up and added 1.5.2Fredrik Lundh2001-01-163-19/+35
| | | | compatibility patches.
* Whitespace normalization.Tim Peters2001-01-161-3/+3
|
* doctest-- The Little Module That Could --finally makes it to the Big Show ↵Tim Peters2001-01-161-0/+1101
| | | | <wink>.
* Fix for SF bug #123625: some newsservers need 'authinfo' *before* 'modeThomas Wouters2001-01-161-0/+20
| | | | | readers', others *after*. (Netscape Collabra for the first category, INN-which-forks-nnrpd for the second.)
* Add strip_dir argument to the single call to .object_filenames(), toAndrew M. Kuchling2001-01-161-0/+1
| | | | | prevent creating files such as build/lib.whatever/Modules/foo.o when given a source filename such as Modules/foo.c.
* Variant of Skip's patch 103246 (Remove unneeded string exception compat from ↵Tim Peters2001-01-151-13/+7
| | | | Queue).
* Ugh. Sorry. Checked in the wrong file. Please ignore revision 1.3;Ka-Ping Yee2001-01-151-154/+154
| | | | it anticipates another patch i was about to propose.
* better format names and error messagesKa-Ping Yee2001-01-151-2/+2
|
* This patch makes sure that the function name always appears in the errorKa-Ping Yee2001-01-153-11/+116
| | | | | | | message, and tries to make the messages more consistent and helpful when the wrong number of arguments or duplicate keyword arguments are supplied. Comes with more tests for test_extcall.py and and an update to an error message in test/output/test_pyexpat.
* Add tokenizer support and tests for u'', U"", uR'', Ur"", etc.Ka-Ping Yee2001-01-153-374/+460
|
* Add a test case suggested by Guido, where a method is created with theBarry Warsaw2001-01-151-0/+38
| | | | new module.
* Committing PEP 232, function attribute feature, approved by Guido.Barry Warsaw2001-01-152-0/+103
| | | | | | Closes SF patch #103123. Regression test for function attributes, with output file.
* - Make sure to quote the username and password (SF patch #103236 byGuido van Rossum2001-01-151-3/+3
| | | | | | | dogfort). - Don't drop the data argument when calling open_https() from the authentication error handler.
* from the really-stupid-bug department: uppercase literals should matchFredrik Lundh2001-01-152-6/+19
| | | | | | | uppercase strings also when the IGNORECASE flag is set (bug #128899) (also added test cases for recently fixed bugs to the regression suite -- or in other words, check in re_tests.py too...)
* mwh@sourceforge found that UnicodeError can be raised by compiling.Guido van Rossum2001-01-151-1/+1
| | | | Its base class ValueError can be raised too, so catch that.
* Default to passive mode. See SF bug #126851.Guido van Rossum2001-01-151-1/+1
| | | | | | This is slightly controversial, but after reading the argumentation in the bug tracker for and against, I believe this is the right solution. Let me know if it breaks for you, and how.
* Fix from Jack Jansen for the Mac and the Metrowerks compiler, postedAndrew M. Kuchling2001-01-153-6/+216
| | | | | to the Distutils-SIG and archived at http://mail.python.org/pipermail/distutils-sig/2000-November/001755.html
* Revert a change I accidentally checked in together with Ping'sGuido van Rossum2001-01-151-4/+1
| | | | "smallest patch ever".
* added "magic" number to the _sre module, to avoid weird errors causedFredrik Lundh2001-01-152-0/+11
| | | | by compiler/engine mismatches
* Whitespace normalization. Top level of Lib now fixed-point for reindent.py!Tim Peters2001-01-1512-432/+432
|
* Whitespace normalization.Tim Peters2001-01-159-515/+512
|
* Whitespace normalization.Tim Peters2001-01-1514-743/+743
|
* Whitespace normalization.Tim Peters2001-01-157-504/+504
|
* Whitespace normalization.Tim Peters2001-01-1517-3199/+3197
|
* -- don't use recursion for unbounded non-greedy repeatFredrik Lundh2001-01-141-1/+1
| | | | | | | | (bugs #115903, #115696) This is based on a patch by Darrel Gallion. I'm not 100% sure about this fix, but I haven't managed to come up with any test case it cannot handle...
* Whitespace normalization.Tim Peters2001-01-1418-1994/+1991
|
* Whitespace normalization.Tim Peters2001-01-1416-1235/+1233
|
* - Don't hardcode Unix filename syntax when opening ~/.pdbrc.Guido van Rossum2001-01-141-4/+4
| | | | - Conform to standard coding style in a few more places.
* - Use mimetypes.types_map to initialize extensions_map.Guido van Rossum2001-01-141-9/+9
| | | | | | - Change the default file type to application/octet-stream. - Add support to recognize .py, .c, .h files as text/plain (this is what I use most :-).
* SF Patch #103211.Guido van Rossum2001-01-141-4/+4
| | | | | | | | | Ping apparently doesn't check in Accepted patches, so I'm doing this for him. According to Ping: The name of the controller class should be "Konqueror", not "Konquerer". (See the website http://www.konqueror.org/.)