Fix to test_invalid_attribute test on Python 3.2 and 3.3