Don't rely on functools in tests; not available in Python 2.4.