summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18780: code cleanup.Ethan Furman2013-08-311-34/+19
|
* Close #18780: %-formatting now prints value for int subclasses with %d, %i, ↵Ethan Furman2013-08-311-0/+47
| | | | and %u codes.
* Issue #16741: Remove testing of implementation artifact.Serhiy Storchaka2013-08-031-2/+0
|\
| * Issue #16741: Remove testing of implementation artifact.Serhiy Storchaka2013-08-031-2/+0
| |
* | Merge str.center tests from 3.3.Ezio Melotti2013-07-081-0/+9
|\ \ | |/
| * 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.
| * 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/+14
|\ \ | |/
| * Add tests for issue #18183.Serhiy Storchaka2013-06-121-3/+15
| |
* | merge 3.3 (#18183)Benjamin Peterson2013-06-101-0/+3
|\ \ | |/
| * remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value ↵Benjamin Peterson2013-06-101-0/+3
| | | | | | | | (see #18183)
* | rewrite the parsing of field names to be more consistent wrt recursive expansionBenjamin Peterson2013-05-171-1/+9
| |
* | merge 3.3Benjamin Peterson2013-05-171-0/+2
|\ \ | |/
| * only recursively expand in the format spec (closes #17644)Benjamin Peterson2013-05-171-0/+2
| |
* | Issue #7330: Implement width and precision (ex: "%5.3s") for the format stringVictor Stinner2013-05-061-54/+175
| | | | | | | | of PyUnicode_FromFormat() function, original patch written by Ysj Ray.
* | Issue #17615: Add tests comparing Unicode strings of different kindsVictor Stinner2013-04-081-0/+85
| | | | | | | | Kinds: ascii, latin, bmp, astral.
* | Merge DeprecationWarnings silencing in test_unicode from 3.3.Ezio Melotti2013-02-201-9/+11
|\ \ | |/
| * Silence DeprecationWarnings in test_unicode.Ezio Melotti2013-02-201-9/+11
| |
* | (Merge 3.3) Issue #17137: When an Unicode string is resized, the internal wideVictor Stinner2013-02-071-0/+15
|\ \ | |/ | | | | character string (wstr) format is now cleared.
| * Issue #17137: When an Unicode string is resized, the internal wide characterVictor Stinner2013-02-071-0/+15
| | | | | | | | string (wstr) format is now cleared.
* | #16910: merge with 3.3.Ezio Melotti2013-01-101-5/+3
|\ \ | |/
| * #16910: test_bytes, test_unicode, and test_userstring now work with unittest ↵Ezio Melotti2013-01-101-5/+3
| | | | | | | | test discovery. Patch by Zachary Ware.
* | Issue #9856: Replace deprecation warinigs to raising TypeError in ↵Andrew Svetlov2012-12-231-5/+3
| | | | | | | | | | | | object.__format__ Patch by Florent Xicluna.
* | Merge from 3.3: Improve str() and object.__str__() docs (issue #13538).Chris Jerdonek2012-11-211-0/+20
|\ \ | |/
| * Improve str() and object.__str__() documentation (issue #13538).Chris Jerdonek2012-11-211-0/+20
| |
* | #8271: merge with 3.3.Ezio Melotti2012-11-041-1/+221
|\ \ | |/
| * #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.3.Mark Dickinson2012-10-281-0/+27
|\ \ | |/
| * 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.
* | | Issue #16147: PyUnicode_FromFormatV() doesn't need anymore to allocate a bufferVictor Stinner2012-10-061-2/+12
| | | | | | | | | | | | on the heap to format numbers.
* | | Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter APIVictor Stinner2012-10-061-0/+16
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Simplify the code: replace 4 steps with one unique step using the _PyUnicodeWriter API. PyUnicode_Format() has the same design. It avoids to store intermediate results which require to allocate an array of pointers on the heap. * Use the _PyUnicodeWriter API for speed (and its convinient API): overallocate the buffer to reduce the number of "realloc()" * Implement "width" and "precision" in Python, don't rely on sprintf(). It avoids to need of a temporary buffer allocated on the heap: only use a small buffer allocated in the stack. * Add _PyUnicodeWriter_WriteCstr() function * Split PyUnicode_FromFormatV() into two functions: add unicode_fromformat_arg(). * Inline parse_format_flags(): the format of an argument is now only parsed once, it's no more needed to have a subfunction. * Optimize PyUnicode_FromFormatV() for characters between two "%" arguments: search the next "%" and copy the substring in one chunk, instead of copying character per character.
* | 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).