summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue 19572: More silently skipped tests explicitly skipped.Zachary Ware2013-12-081-5/+5
|
* fix format spec recursive expansion (closes #19729)Benjamin Peterson2013-11-271-0/+1
|
* Issue #16741: Remove testing of implementation artifact.Serhiy Storchaka2013-08-031-2/+0
|
* Add a couple of tests for str.center with non-ASCII chars.Ezio Melotti2013-07-081-0/+9
|
* Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raiseSerhiy Storchaka2013-06-231-0/+2
| | | | OverflowError when an argument of %c format is out of range.
* Add tests for issue #18183.Serhiy Storchaka2013-06-121-3/+15
|
* remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵Benjamin Peterson2013-06-101-0/+3
| | | | (see #18183)
* only recursively expand in the format spec (closes #17644)Benjamin Peterson2013-05-171-0/+2
|
* Silence DeprecationWarnings in test_unicode.Ezio Melotti2013-02-201-9/+11
|
* Issue #17137: When an Unicode string is resized, the internal wide characterVictor Stinner2013-02-071-0/+15
| | | | string (wstr) format is now cleared.
* #16910: test_bytes, test_unicode, and test_userstring now work with unittest ↵Ezio Melotti2013-01-101-5/+3
| | | | test discovery. Patch by Zachary Ware.
* Improve str() and object.__str__() documentation (issue #13538).Chris Jerdonek2012-11-211-0/+20
|
* #8271: the utf-8 decoder now outputs the correct number of U+FFFD ↵Ezio Melotti2012-11-041-1/+221
| | | | characters when used with the "replace" error handler on invalid utf-8 sequences. Patch by Serhiy Storchaka, tests by Ezio Melotti.
* Issue #14700: merge tests from 3.2.Mark Dickinson2012-10-281-0/+27
|\
| * Issue #14700: Fix buggy overflow checks for large precision and width in ↵Mark Dickinson2012-10-281-0/+27
| | | | | | | | new-style and old-style formatting.
* | add another testcaseBenjamin Peterson2012-08-051-0/+1
| |
* | Remove a now worthless test.Brett Cannon2012-05-121-8/+0
| |
* | unicode_writer_finish() checks string consistencyVictor Stinner2012-05-091-0/+4
| |
* | Close #14648: Compute correctly maxchar in str.format() for substrinVictor Stinner2012-04-231-2/+8
| |
* | inherit maxchar of field value where needed (closes #14648)Benjamin Peterson2012-04-231-0/+2
| |
* | str.format_map tests don't do what they say: fix to actually implement the ↵Eric V. Smith2012-03-121-6/+9
|\ \ | |/ | | | | intent of the test. Closes #13450. Patch by Akira Li.
| * str.format_map tests don't do what they say: fix to actually implement the ↵Eric V. Smith2012-03-121-6/+9
| | | | | | | | intent of the test. Closes #13450.
| * Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()Victor Stinner2011-11-221-0/+36
| | | | | | | | | | * Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII() * Remove the unused "e" variable in replace()
* | add str.casefold() (closes #13752)Benjamin Peterson2012-01-141-0/+8
| |
* | use full unicode mappings for upper/lower/title case (#12736)Benjamin Peterson2012-01-111-0/+44
| | | | | | | | Also broaden the category of characters that count as lowercase/uppercase.
* | Close #13093: PyUnicode_EncodeDecimal() doesn't support error handlersVictor Stinner2011-11-251-14/+4
| | | | | | | | | | different than "strict" anymore. The caller was unable to compute the size of the output buffer: it depends on the error handler.
* | (Merge 3.2) Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()Victor Stinner2011-11-221-0/+6
| |
* | Add a test on str.__getnewargs__()Victor Stinner2011-11-221-0/+7
| | | | | | | | It tests indirectly PyUnicode_Copy(): ensure that the string is a copy.
* | Rewrite PyUnicode_EncodeDecimal() to use the new Unicode APIVictor Stinner2011-11-211-0/+30
| | | | | | | | | | Add tests for PyUnicode_EncodeDecimal() and PyUnicode_TransformDecimalToASCII().
* | "unicode_internal" codec has been deprecated: fix related testsVictor Stinner2011-11-151-7/+15
| |
* | Issue #13333: The UTF-7 decoder now accepts lone surrogatesAntoine Pitrou2011-11-151-4/+12
|\ \ | |/ | | | | (the encoder already accepts them).
| * Issue #13333: The UTF-7 decoder now accepts lone surrogatesAntoine Pitrou2011-11-151-4/+12
| | | | | | | | (the encoder already accepts them).
* | Fix range in test.Ezio Melotti2011-11-111-1/+1
| |
* | Make test more inclusiveAntoine Pitrou2011-11-111-6/+4
| |
* | Enable commented out testAntoine Pitrou2011-11-111-1/+1
| |
* | Issue #13134: optimize finding single-character strings using memchrAntoine Pitrou2011-10-111-0/+17
| |
* | test_unicode was forgetting to run the common string tests for str.find()Antoine Pitrou2011-10-081-0/+1
|\ \ | |/
| * test_unicode was forgetting to run the common string tests for str.find()Antoine Pitrou2011-10-081-0/+1
| |
* | Mark 'abc'.expandtab() optimization as specific to CPythonVictor Stinner2011-10-071-3/+4
| | | | | | | | Improve also str.replace(a, a) test
* | str.replace(a, a) is now returning str unchanged if a is aVictor Stinner2011-10-071-0/+6
| |
* | #13054: fix usage of sys.maxunicode after PEP-393.Ezio Melotti2011-10-041-16/+4
| |
* | When expandtabs() would be a no-op, don't create a duplicate stringAntoine Pitrou2011-10-041-0/+4
| |
* | Optimize unicode_subtype_new(): don't encode to wchar_t and decode from wchar_tVictor Stinner2011-10-011-4/+7
| | | | | | | | Rewrite unicode_subtype_new(): allocate directly the right type.
* | remove "fast-path" for (i)adding stringsBenjamin Peterson2011-10-011-0/+12
| | | | | | | | | | | | These were just an artifact of the old unicode concatenation hack and likely just penalized other kinds of adding. Also, this fixes __(i)add__ on string subclasses.
* | Fix struct sizes. Drop -1, since the resulting string was actually the ↵Martin v. Löwis2011-09-281-6/+7
| | | | | | | | | | | | largest one that could be allocated.
* | Implement PEP 393.Martin v. Löwis2011-09-281-14/+27
| |
* | Merge indentation fix and skip decorator with 3.2.Ezio Melotti2011-08-221-24/+28
|\ \ | |/
| * Fix indentation and add a skip decorator.Ezio Melotti2011-08-221-24/+28
| |
* | #9200: merge with 3.2.Ezio Melotti2011-08-221-1/+157
|\ \ | |/
| * #9200: The str.is* methods now work with strings that contain non-BMP ↵Ezio Melotti2011-08-221-1/+157
| | | | | | | | characters even in narrow Unicode builds.