diff options
| author | Eric V. Smith <eric@trueblade.com> | 2015-09-29 10:30:47 -0400 |
|---|---|---|
| committer | Eric V. Smith <eric@trueblade.com> | 2015-09-29 10:30:47 -0400 |
| commit | 6dcada3bcfbaa35930a55bf67e5d6393f444f68a (patch) | |
| tree | 729ab8053604716c5323b138a1cf824a4d888714 /Lib/test/test_string.py | |
| parent | 2fbcd2a057bb09c385d90386e4c17038360b0611 (diff) | |
| parent | ad4003c7fb9072c2697480ee84440408f7a49cd9 (diff) | |
| download | cpython-git-6dcada3bcfbaa35930a55bf67e5d6393f444f68a.tar.gz | |
Issue #25034: Merge from 3.5.
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 5d37e164cf..0cd2b86217 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)) |
