Add fixture so py.test can inject variables into function global
namespace.  Fixes failures in test_coordinate_vars
Rather than muck around with __globals__, define the appropriate local
variables in the test functions.
Merge pull request #8115 from pbrady/fix_test_coordinate_vars

Fix py.test failure in test_coordinate_vars