Serhiy Storchaka
10fd0aaf8b
Issue #27185 : Rename test_string_merged.py back to test_string.py.
2016-06-03 10:38:24 +03:00
Serhiy Storchaka
9415bc41ab
Issue #27185 : Rename test_string.py to test_string_merged.py.
2016-06-03 10:30:25 +03:00
Eric V. Smith
ad4003c7fb
Issue #25034 : Merge from 3.4.
2015-09-29 10:30:04 -04:00
Eric V. Smith
85976b14dd
Fixed issue #25034 : Fix string.Formatter problem with auto-numbering
...
and nested format_specs. Patch by Anthon van der Neut.
2015-09-29 10:27:38 -04:00
R David Murray
0a8f43e85a
#11754 : test contents of string module attributes.
...
As noted in the comment, while the order of the items in the attributes is not
technically guaranteed, after all this time there is almost certainly user
code out there that relies on it, so we might as well test for it.
Patch by Chalmer Lowe.
2015-04-13 20:04:29 -04:00
Zachary Ware
38c707e7e0
Issue #21741 : Update 147 test modules to use test discovery.
...
I have compared output between pre- and post-patch runs of these tests
to make sure there's nothing missing and nothing broken, on both
Windows and Linux. The only differences I found were actually tests
that were previously *not* run.
2015-04-13 15:00:43 -05:00
Serhiy Storchaka
b876df4cbb
Issue #23671 : string.Template now allows to specify the "self" parameter as
...
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:30:46 +02:00
Serhiy Storchaka
8ffe917cee
Issue #23671 : string.Template now allows to specify the "self" parameter as
...
keyword argument. string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:28:43 +02:00
Eric V. Smith
7ce90743a1
Issue #13598 : Add auto-numbering of replacement fields to string.Formatter.
2014-04-14 16:43:50 -04:00
R David Murray
749bd42072
Merge #13579 : teach string.Formatter about 'a'.
...
Patch by Francisco Martín Brugué.
2012-08-19 17:45:40 -04:00
R David Murray
e56bf97ef4
#13579 : teach string.Formatter about 'a'.
...
Patch by Francisco Martín Brugué.
2012-08-19 17:26:34 -04:00
Nick Coghlan
62ecb6aa0a
Tidy up the additional string module tests added at the Pycon sprints ( closes #11505 )
2011-05-31 19:40:11 +10:00
Nick Coghlan
7462fa654b
Backport improved test coverage for string.py
2011-03-16 14:30:45 -04:00
Ezio Melotti
42da663e6f
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 05:18:48 +02:00
Ezio Melotti
373089239b
#11515 : Merge with 3.2.
2011-03-15 06:03:08 +02:00
Nick Coghlan
d25fd4d710
Close #11505 : Improve string.py coverage
2011-03-15 08:54:37 +10:00
Ezio Melotti
029625c3f6
Merged revisions 75074 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r75074 | ezio.melotti | 2009-09-26 15:33:22 +0300 (Sat, 26 Sep 2009) | 9 lines
Merged revisions 75070 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line
#7000 : document "sep" in capwords. Add a few tests
........
................
2009-09-26 12:35:01 +00:00
Ezio Melotti
a40bdda937
Merged revisions 75070 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75070 | ezio.melotti | 2009-09-26 14:20:53 +0300 (Sat, 26 Sep 2009) | 1 line
#7000 : document "sep" in capwords. Add a few tests
........
2009-09-26 12:33:22 +00:00
Ezio Melotti
2dcd4c5a0f
Merged revisions 75072 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r75072 | ezio.melotti | 2009-09-26 15:19:30 +0300 (Sat, 26 Sep 2009) | 1 line
string.capwords is still around, adding back the tests
........
2009-09-26 12:27:13 +00:00
Ezio Melotti
2c6a949e43
string.capwords is still around, adding back the tests
2009-09-26 12:19:30 +00:00
Georg Brandl
abc387747d
Add bytes/bytearray.maketrans() to mirror str.maketrans(), and deprecate
...
string.maketrans() which actually works on bytes. (Also closes #5675.)
2009-04-12 15:51:51 +00:00
Benjamin Peterson
ee8712cda4
#2621 rename test.test_support to test.support
2008-05-20 21:35:26 +00:00
Georg Brandl
7f13e6b3e2
string.maketrans() now produces translation tables for bytes.translate() -- wrong module?
...
Fix all remaining instances that did bad things with the new str.translate().
2007-08-31 10:37:15 +00:00
Eric Smith
3bcc42ad0f
Changed signature of string.Formatter.get_field, per suggestion by
...
Ron Adam.
Added test case for using all parameters in string.Formatter.
2007-08-31 02:26:31 +00:00
Eric Smith
81936699c8
Added test cases for string.Formatter subclassing.
...
Made format_spec parameter to builtin format optional, defaults to
empty string. Added test cases.
2007-08-31 01:14:01 +00:00