From: Raymond Hettinger Date: Sun, 12 Sep 2010 18:16:01 +0000 (+0000) Subject: Put tests in more logical order. X-Git-Tag: v3.2a3~300 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1725296cc81f20b5aad19009da0efda48a87fc9;p=thirdparty%2FPython%2Fcpython.git Put tests in more logical order. --- diff --git a/Lib/collections.py b/Lib/collections.py index e849296cdd81..9120ab69d566 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -169,10 +169,10 @@ class OrderedDict(dict, MutableMapping): def __repr__(self): 'od.__repr__() <==> repr(od)' - if self.__in_repr: - return '...' if not self: return '%s()' % (self.__class__.__name__,) + if self.__in_repr: + return '...' self.__in_repr = True try: result = '%s(%r)' % (self.__class__.__name__, list(self.items()))