Allowpython_tests()
to set environment variables
#12022
Merged
python_tests()
to set environment variables
#12022