- 23 Aug, 2002 7 commits
-
-
Fred Drake authored
Remove the third column in the tables since it isn't used.
-
Fred Drake authored
Move another entry so the boilerplate doesn't get mixed up with document-specific content.
-
Raymond Hettinger authored
-
Guido van Rossum authored
the element if necessary. Fixed by calling self.remove(element).
-
Guido van Rossum authored
required number of args is 0 or 1 -- were reversed. Also change "1" into "exactly one", the same words as used elsewhere for this condition.
-
Jack Jansen authored
to the list of places where pydoc looks for HTML documents.
-
Guido van Rossum authored
rather than a number of approximating regular expressions. Alas, it is 3-4 times slower. Let that be a challenge for the tokenize module.
-
- 22 Aug, 2002 33 commits
-
-
Jack Jansen authored
classic Python is gone.
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Jack Jansen authored
-
Greg Ward authored
any non-whitespace characters adjacent, not just \w.
-
Greg Ward authored
-
Greg Ward authored
we need to test TextWrapper._split().
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
into /--foo-/bar/ rather than /--/foo-/bar/. Needed for Optik and Docutils to handle Unix-style command-line options properly.
-
Guido van Rossum authored
-
Guido van Rossum authored
unittest.makeSuite() rather than loader.loadTestsFromTestCase().
-
Guido van Rossum authored
trailing whitespace.
-
Guido van Rossum authored
Expand the example to show some actual test functions, and a setUp() and tearDown() method.
-
Guido van Rossum authored
of dummy_test_TemporaryFile class; when NamedTemporaryFile and TemporaryFile are the same, simply don't add a test suite for TemporaryFile.
-
Guido van Rossum authored
test_main() that creates a suite and runs it. Don't mess with sys.path!!!
-
Greg Ward authored
em-dashes -- like this -- properly. (Also--like this. Although this usage may be incompatible with fixing bug #596434; we shall see.)
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
suite merging all test cases.
-
Guido van Rossum authored
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
(tests) from test_funky_punc() to test_break_long() and test_long_words() to test_nobreak_long().
-
Greg Ward authored
-
Greg Ward authored
base class (WrapperTestCase) instead, and call it repeatedly in the methods that used to have a loop-over-subcases. Much simpler. Rename perennial temp variable 't' to 'text'.
-
Greg Ward authored
for-loops) in test_simple(), test_wrap_short() test_hyphenated(), and test_funky_punc().
-
Greg Ward authored
Remove some useless comments (redundant, or info presumably available in PyUnit docs).
-
Greg Ward authored
* lowercase test*() methods * define test_main() and use it instead of unittest.main() Kill #! line. Improve some test names and docstrings.
-
Greg Ward authored
<peter@engcorp.com> based on a test script that's been kicking around my home directory for a couple of months now and only saw the light of day because I included it when I sent textwrap.py to python-dev for review.
-
Guido van Rossum authored
598097)
-
Guido van Rossum authored
than raising TypeError when the other argument is not a BaseSet. This made it necessary to separate the implementation of e.g. __or__ from the union method; the latter should not return NotImplemented but raise TypeError. This is accomplished by making union(self, other) return self|other, etc.; Python's binary operator machinery will raise TypeError. The idea behind this change is to allow other set implementations with an incompatible internal structure; these can provide union (etc.) with standard sets by implementing __ror__ etc. I wish I could do this for comparisons too, but the default comparison implementation allows comparing anything to anything else (returning false); we don't want that (at least the test suite makes sure e.g. Set()==42 raises TypeError). That's probably fine; otherwise other set implementations would be constrained to implementing a hash that's compatible with ours.
-