Fixed flake8 error introduced by test_getattr_recursion