Commit Graph

2975 Commits

Author SHA1 Message Date
Fredrik Lundh
82c330e591 -- updated to include known problems in SRE 0.9.6
(cf. test/output/test_sre)
2000-07-24 22:35:11 +00:00
Fred Drake
1790dd4b66 Restore TestSkipped exception; appears to have disappeared in last checkin.
Make both TextFailed and TestSkipped subclasses of Error, which derives
from Exception.  Docstrings have been added for the exceptions and module.
2000-07-24 06:55:00 +00:00
Fredrik Lundh
8a3ebf8ca8 -- SRE 0.9.6 sync. this includes:
+ added "regs" attribute
 + fixed "pos" and "endpos" attributes
 + reset "lastindex" and "lastgroup" in scanner methods
 + removed (?P#id) syntax; the "lastindex" and "lastgroup"
   attributes are now always set
 + removed string module dependencies in sre_parse
 + better debugging support in sre_parse
 + various tweaks to build under 1.5.2
2000-07-23 21:46:17 +00:00
Paul Prescod
623511b7df Added a few docstrings 2000-07-21 22:05:49 +00:00
Paul Prescod
863d8b855f Added docstrings 2000-07-21 21:43:09 +00:00
Thomas Wouters
ff4df6d6fb Small fixes by Petru Paler (patch #100946) checked in with esr's approval. 2000-07-21 05:19:59 +00:00
Skip Montanaro
e9e5dcd4db restructured a bit and added some more content... 2000-07-19 17:19:49 +00:00
Skip Montanaro
4d06923122 make TestFailed a class exception 2000-07-19 17:14:48 +00:00
Skip Montanaro
018dfae246 added rewritten normpath from Moshe Zadka that does the right thing with
paths containing ..
2000-07-19 17:09:51 +00:00
Thomas Wouters
baf2663e44 Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P) 2000-07-19 14:51:54 +00:00
Greg Stein
dd6eefb348 no changes other than indentation level (now 4) and comment reflow.
use "cvs diff -b" to verify.
2000-07-18 09:09:48 +00:00
Skip Montanaro
1d3dd74574 * split on / or \
* case insensitive comparison
2000-07-17 03:06:58 +00:00
Skip Montanaro
802bc5d9b3 damn! cut-n-paste from ntpath forgot the "import re" 2000-07-17 03:06:26 +00:00
Skip Montanaro
6222c05af6 * split on / or \
* case insensitive
2000-07-17 03:04:19 +00:00
Paul Prescod
d61591813c At GVR's request. 2000-07-16 23:00:10 +00:00
Paul Prescod
9eab78994e Online help facility for the Python interprter and other interactive
environments.
2000-07-16 19:53:00 +00:00
Skip Montanaro
a924bb1ad2 split and join on "/" in commonprefix 2000-07-16 16:52:45 +00:00
Thomas Wouters
7e47402264 Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
2000-07-16 12:04:32 +00:00
Thomas Wouters
c533e4a012 Bugfix by Rob W. W. Hooft, from his spelling fixes patch. This one is a
genuine bug, so I checked it in separately.
2000-07-16 11:57:20 +00:00
Fredrik Lundh
3fded4bb29 -- fixed the comment, too 2000-07-15 20:58:44 +00:00
Fredrik Lundh
efd7b001d6 -- note to self: wait until 'cvs commit' has finished before
you edit the file.
2000-07-15 20:50:27 +00:00
Fredrik Lundh
47ac12662a -- changed default encoding to "ascii". you can still change
the default via site.py...
2000-07-15 20:45:23 +00:00
Vladimir Marangozov
5ff2ac2fa9 Break a cycle created in the saboteur() function. 2000-07-15 00:42:09 +00:00
Eric S. Raymond
649685ad9b ConfigParser enhancements to edit existing configs, part 2 2000-07-14 14:28:22 +00:00
Andrew M. Kuchling
23adc9f37b Typo fix from Bastian Kleineidam 2000-07-14 13:35:07 +00:00
Vladimir Marangozov
d57f5cff0e Break the cycles after testing cmp() on cyclic objects. 2000-07-14 04:32:09 +00:00
Eric S. Raymond
5e70cfe22f Apply Greg Kochanski's fix for open/265. 2000-07-13 13:25:07 +00:00
Eric S. Raymond
dfbd4c7695 Fix bug open/243 reported by Dimitri Papadopoulos 2000-07-13 13:12:21 +00:00
Skip Montanaro
4d5d5bf5ae forgot to change copy.copy(m) to m[:] 2000-07-13 01:01:03 +00:00
Skip Montanaro
97bc98aea7 fixed semantics of commonprefix to work by path elements instead of
characters.
2000-07-12 16:55:57 +00:00
Greg Stein
42bb8b3987 apply patch #100868 from Moshe Zadka:
refactor the copying of file data. new: shutil.copyfileobj(fsrc, fdst)
2000-07-12 09:55:30 +00:00
Andrew M. Kuchling
38f744195f Remove extra argument to method call 2000-07-12 03:38:34 +00:00
Skip Montanaro
56509a3cb8 new test for posixpath module 2000-07-12 00:20:45 +00:00
Skip Montanaro
e809b00f36 new test file for posixpath module 2000-07-12 00:20:08 +00:00
Jeremy Hylton
88887aa38e small updates to string_join:
use PyString_AS_STRING macro on local string object
    when resizing string, make sure resized string will always be big enough
    split string containing error message across two lines
add test to string_tests that causes resizing
2000-07-11 20:55:38 +00:00
Fred Drake
85f363990c Create two new exceptions: IndentationError and TabError. These are
used for indentation related errors.  This patch includes Ping's
improvements for indentation-related error messages.

Closes SourceForge patches #100734 and #100856.
2000-07-11 17:53:00 +00:00
Jeremy Hylton
fff9e20943 fix bug #42 reported by Andrew Dalke
The Compare close contains a close method that checks to see if there
is any unconsumed data in the Compare instance; i.e. if the canonical
output file contains more data than was produced by the current test
run. This method was never called, allowing differences to go
undetected.

Fix is to call close after the test is run (after __import__)

output/test_long and output/test_popen2 needed trivial changes
output/test_select contained lots of text, but test_select.py produced
    no output
2000-07-11 15:15:31 +00:00
Eric S. Raymond
5f1b27084a Bug fix: ? and ! were not full aliases for help' and shell' as implied in
the documentation; the cases `? foo' and `! foo' failed.
2000-07-11 13:03:55 +00:00
Peter Schneider-Kamp
7a11671e8b fixed inconsistent use of tab and spaces 2000-07-11 11:24:41 +00:00
Andrew M. Kuchling
d3cf692c38 Add test of resize() method of mmap objects 2000-07-11 10:45:28 +00:00
Andrew M. Kuchling
e0d0090e76 Docstring changes. 2000-07-11 10:38:24 +00:00
Jeremy Hylton
20f41b6456 add more tests of string.join variants to run_method_tests 2000-07-11 03:31:55 +00:00
Fredrik Lundh
663809ed83 -- removed get_default compatibility kludge
-- added a few extra comments to locale.py
2000-07-10 19:32:19 +00:00
Eric S. Raymond
417c489def Give ConfigParser the capability to set as well as read options, and to write
a representation of the configuration state in .ini format that can be read
back in by a future read() call.  Thus this class is now a back end
for .ini editors as well as parsers.

This patch is complete and tested, but exposes a bug in the ConfigParser
implementation which I have not yet fixed.  Because case information is
discarded during parsing, the output of write() has its case smashed.

I wrote this for a SourceForge interface script called forgetool.
Documentation for the new entry points included.
2000-07-10 18:11:00 +00:00
Jeremy Hylton
f82b04ecbb factor out test definitions to string_tests module
test_string and test_userstring run same tests for string methods
2000-07-10 17:08:42 +00:00
Jeremy Hylton
fd54757336 add isalpha and isalnum methods 2000-07-10 17:07:17 +00:00
Guido van Rossum
1bbddd085c Added the line 'Testing UTF-16 code point order comparisons... done."
to match addition to test_unicode.py.
2000-07-10 15:06:06 +00:00
Jeremy Hylton
fb8849c4a5 remove prints of file objects from _test 2000-07-10 14:28:25 +00:00
Jeremy Hylton
a5ae490584 expect message "no regression test case for method 'encode' 2000-07-10 14:14:40 +00:00
Andrew M. Kuchling
a48dbde93b Patch from Joe Eaton <jeaton@hostway.net> (SF#100741) to fix following problem:
There is a silly bug in the fall-back dumbdbm.py database package in
  the Python 1.5.2 standard distro. This bug causes any changes to an
  existing item to generate a new key, even when the key already
  exists.  After many updates, the .dir file used by dumbdbm grows to
  a huge size, and can cause filesystem problems.
2000-07-10 13:56:35 +00:00