fix NameError exception in test_profile
1 file changed