diff options
author | Eric V. Smith <eric@trueblade.com> | 2015-09-29 14:30:04 (GMT) |
---|---|---|
committer | Eric V. Smith <eric@trueblade.com> | 2015-09-29 14:30:04 (GMT) |
commit | ad4003c7fb9072c2697480ee84440408f7a49cd9 (patch) | |
tree | d0b40b8cae2b95150fcbff61acab9fad0d437e7c /Lib/test/test_string.py | |
parent | cb764960c917ba9b91cb7dc3aebf4b642f62167d (diff) | |
parent | 85976b14ddb941670ee831ed18b5bc69ca1380ac (diff) | |
download | cpython-ad4003c7fb9072c2697480ee84440408f7a49cd9.zip cpython-ad4003c7fb9072c2697480ee84440408f7a49cd9.tar.gz cpython-ad4003c7fb9072c2697480ee84440408f7a49cd9.tar.bz2 |
Issue #25034: Merge from 3.4.
Diffstat (limited to 'Lib/test/test_string.py')
-rw-r--r-- | Lib/test/test_string.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py index 5d37e16..0cd2b86 100644 --- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -58,6 +58,8 @@ class ModuleTest(unittest.TestCase): 'foo{1}{num}{1}'.format(None, 'bar', num=6)) self.assertEqual(fmt.format('{:^{}}', 'bar', 6), '{:^{}}'.format('bar', 6)) + self.assertEqual(fmt.format('{:^{}} {}', 'bar', 6, 'X'), + '{:^{}} {}'.format('bar', 6, 'X')) self.assertEqual(fmt.format('{:^{pad}}{}', 'foo', 'bar', pad=6), '{:^{pad}}{}'.format('foo', 'bar', pad=6)) |