cpython: e1457e9f340f (original) (raw)

Mercurial > cpython

changeset 95623:e1457e9f340f

#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. [#11754]

R David Murray rdmurray@bitdance.com
date Mon, 13 Apr 2015 20:04:29 -0400
parents 4dd6c8dc34ff
children 4f90751edb4f
files Lib/test/test_string.py Misc/ACKS
diffstat 2 files changed, 14 insertions(+), 9 deletions(-)[+] [-] Lib/test/test_string.py 22 Misc/ACKS 1

line wrap: on

line diff

--- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -4,15 +4,19 @@ import unittest, string class ModuleTest(unittest.TestCase): def test_attrs(self):

def test_capwords(self): self.assertEqual(string.capwords('abc def ghi'), 'Abc Def Ghi')

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -850,6 +850,7 @@ Anne Lord Tom Loredo Justin Love Ned Jackson Lovely +Chalmer Lowe Jason Lowe Tony Lownds Ray Loyzaga