Just in case we decide to officially support Python 2.6.

That also explains the use of the ugly `assert_raises(TypeError, lambda: ....)` instead of using the context manager syntax.