summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strop.py
Commit message (Collapse)AuthorAgeFilesLines
* Rip out 'long' and 'L'-suffixed integer literals.Guido van Rossum2007-01-151-1/+1
| | | | (Rough first cut.)
* Complete the absolute import patch for the test suite. All relativeBarry Warsaw2002-07-301-1/+1
| | | | | | | | imports of test modules now import from the test package. Other related oddities are also fixed (like DeprecationWarning filters that weren't specifying the full import part, etc.). Also did a general code cleanup to remove all "from test.test_support import *"'s. Other from...import *'s weren't changed.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-161-2/+3
| | | | order in which the tests are normally run.
* Change the PyUnit-based tests to use the test_main() approach. ThisFred Drake2001-09-201-1/+6
| | | | | allows using the tests with unittest.py as a script. The tests will still run when run as a script themselves.
* Migrate the strop test to PyUnit.Fred Drake2001-05-221-81/+118
|
* Add warnings to the strop module, for to those functions that reallyGuido van Rossum2001-05-151-0/+2
| | | | | | | | | *are* obsolete; three variables and the maketrans() function are not (yet) obsolete. Add a compensating warnings.filterwarnings() call to test_strop.py. Add this to the NEWS.
* Guido has Spoken. Restore strop.replace()'s treatment of a 0 count asTim Peters2001-05-101-1/+3
| | | | | | | meaning infinity -- but at least warn about it in the code! I pissed away a couple hours on this today, and don't wish the same on the next in line. Bugfix candidate.
* The strop module and test_strop.py believe replace() with a 0 countTim Peters2001-05-101-1/+1
| | | | | | | means "replace everything". But the string module, string.replace() amd test_string.py believe a 0 count means "replace nothing". "Nothing" wins, strop loses. Bugfix candidate.
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-1/+1
| | | | 'verify' iff it's used by a test module...
* 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.
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-1/+1
|
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-8/+8
|
* Added strop.split tests when sep is None.Barry Warsaw1997-12-021-0/+6
|
* Added tests of strop.replace()Barry Warsaw1997-11-291-0/+9
|
* Added a couple of strop.join() tests for large lists and long itemsBarry Warsaw1997-01-061-1/+20
| | | | within the lists (new output file to be checked in shortly).
* Added tests of all strop module functions, and touching of moduleBarry Warsaw1996-12-091-2/+35
| | | | variables
* Removed debugging print statementGuido van Rossum1996-10-081-1/+0
|
* Simple test module for strop.Guido van Rossum1996-10-081-0/+21