From: Tim Peters Date: Tue, 18 Feb 2003 16:54:41 +0000 (+0000) Subject: One doctest displaying a dict didn't sort it first. *Maybe* this fixes X-Git-Tag: v2.3c1~1798 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2052ab82aad273fa547fb91e09d63a15b3be305;p=thirdparty%2FPython%2Fcpython.git One doctest displaying a dict didn't sort it first. *Maybe* this fixes the AIX problem with this test. --- diff --git a/Lib/test/test_descrtut.py b/Lib/test/test_descrtut.py index 017c1450aa7b..66cb74924d9b 100644 --- a/Lib/test/test_descrtut.py +++ b/Lib/test/test_descrtut.py @@ -106,8 +106,8 @@ just like classic classes: >>> d = dir(a) >>> 'default' in d and 'x1' in d and 'x2' in d True - >>> print a.__dict__ - {'default': -1000, 'x2': 200, 'x1': 100} + >>> print sortdict(a.__dict__) + {'default': -1000, 'x1': 100, 'x2': 200} >>> """