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:
parent
f1f582714c
commit
320e00276f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user