Skip to content

Commit

Permalink
try to normalize order between py 2 and 3 by ignoring object in the MRO
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Nov 5, 2014
1 parent c8282f2 commit 63fae4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zope/testrunner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def order_by_bases(layers):
getmro = inspect.getmro

def layer_sortkey(layer):
return tuple((c.__module__, c.__name__) for c in getmro(layer)[::-1])
return tuple((c.__module__, c.__name__) for c in getmro(layer)[::-1] if c is not object)

layers = [layer for layer in layers]
layers.sort(key=layer_sortkey, reverse=True)
Expand Down

0 comments on commit 63fae4b

Please sign in to comment.