Fix module_parsing test (#11087)

The module_parsing test checks whether the module function is available
by looking for the string 'not found'. If the user has set a different
locale, the test can assume that the module function is available when
it actually is not.
This commit is contained in:
Michael Kuhn 2019-04-05 20:26:40 +02:00 committed by Todd Gamblin
parent f1f582714c
commit 320e00276f

View File

@ -15,7 +15,10 @@
ModuleError)
env = os.environ.copy()
env['LC_ALL'] = 'C'
typeset_func = subprocess.Popen('module avail',
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
shell=True)