Remove unneeded use of globals() and locals() in test on imports
introduced with the issue19081 tests.