refactored testing interface

This commit is contained in:
David Halter
2012-08-24 12:28:37 +02:00
parent 727267d501
commit d4e87103b9
2 changed files with 71 additions and 34 deletions

View File

@@ -101,3 +101,8 @@ class Python3Method(object):
else:
return lambda *args, **kwargs: self.func(obj, *args, **kwargs)
try:
# the python3 way
from functools import reduce
except ImportError:
reduce = reduce