summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_string.py
Commit message (Collapse)AuthorAgeFilesLines
* Move test_bug1001011() to string_tests.MixinStrUnicodeTest so thatWalter Dörwald2004-08-261-22/+0
| | | | | | it can be used for str and unicode. Drop the test for "".join([s]) is s because this is an implementation detail (and doesn't work for unicode)
* SF Patch #1007087: Return new string for single subclass joins (Bug #1001011)Raymond Hettinger2004-08-231-0/+23
| | | | | | | (Patch contributed by Nick Coghlan.) Now joining string subtypes will always return a string. Formerly, if there were only one item, it was returned unchanged.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-4/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Port all string tests to PyUnit and share as much testsWalter Dörwald2003-02-211-84/+104
| | | | | | | between str, unicode, UserString and the string module as possible. This increases code coverage in stringobject.c from 83% to 86% and should help keep the string classes in sync in the future. From SF patch #662807
* Whitespace normalization.Tim Peters2003-02-191-1/+0
|
* String tests should test 8-bit strings :-)Marc-André Lemburg2002-12-301-1/+1
|
* Patch for bug #659709: bogus computation of float lengthMarc-André Lemburg2002-12-291-0/+26
| | | | | Python 2.2.x backport candidate. (This bug has been around since Python 1.6.)
* Moved inplace add and multiply methods from UserString to MutableString.Raymond Hettinger2002-08-091-0/+1
| | | | | Closes SF Bug #592573 where inplace add mutated a UserString. Added unittests to verify the bug is cleared.
* Committing patch #591250 which provides "str1 in str2" when str1 is aBarry Warsaw2002-08-061-0/+1
| | | | string of longer than 1 character.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-2/+2
| | | | | | | | | | | 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. :)
* Whitespace normalization.Tim Peters2002-05-231-1/+1
|
* Apply diff3.txt from SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-171-0/+19
| | | | | | | | | If a str or unicode method returns the original object, make sure that for str and unicode subclasses the original will not be returned. This should prevent SF bug http://www.python.org/sf/460020 from reappearing.
* test(): Avoid a UnboundLocalError when a method is missing from both the stringFinn Bock2001-12-091-0/+1
| | | | | | module and from string methods. This closes patch "[ #490811 ] Jython and test_string".
* 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-2/+1
|
* Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'Thomas Wouters2000-08-041-2/+2
| | | | | to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README.
* factor out test definitions to string_tests moduleJeremy Hylton2000-07-101-166/+4
| | | | test_string and test_userstring run same tests for string methods
* Added tests for the new .isalpha() and .isalnum() methods.Marc-André Lemburg2000-07-051-0/+15
|
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-2/+1
| | | | | Modified .splitlines() tests according to the changes in stringobject.c.
* On 17-Mar-2000, Marc-Andre Lemburg said:Barry Warsaw2000-03-201-0/+1
| | | | | | | | | | | | | Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
* Marc-Andre Lemburg: test script for Unicode implementation.Guido van Rossum2000-03-101-10/+53
|
* Added a couple of endswith test cases for bugs reported by Timbot.Barry Warsaw1999-06-151-0/+8
| | | | | Also added a short circuit for the regression test suite since CVS insisted on putting this file in the main branch. :(
* Added more tests of joinBarry Warsaw1999-06-141-0/+9
|
* Two extra startswith testsBarry Warsaw1999-06-111-0/+3
|
* Harness can now test object methods directly, if they aren't availableBarry Warsaw1999-06-111-2/+14
| | | | | | in the string module. Add a bunch of new tests for extended startswith/endswith arguments.
* Regression test for the new string methods.Barry Warsaw1999-06-101-0/+110