diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-10-11 13:59:52 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-10-11 13:59:52 +0400 |
commit | 196dd7e30a0b56597bc702b70cf1dcd2be666cb5 (patch) | |
tree | 6a176c0dc19c0f128cab1e15166ec1fcb0c3bab7 /test/lib | |
parent | 00543277e42142d9f74c405eef826fd20bf8edad (diff) |
[thorstenp] use isinstance rather than type(x) == y. use sorted()
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/mock.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/mock.py b/test/lib/mock.py index c4a4e6332..0c2b6170a 100644 --- a/test/lib/mock.py +++ b/test/lib/mock.py @@ -228,8 +228,7 @@ class MockCall: for p in self.params: s = s + sep + repr(p) sep = ', ' - items = self.kwparams.items() - items.sort() + items = sorted(self.kwparams.items()) for k,v in items: s = s + sep + k + '=' + repr(v) sep = ', ' |