Skip to content
Snippets Groups Projects
Commit 320e0027 authored by Michael Kuhn's avatar Michael Kuhn Committed by Todd Gamblin
Browse files

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.
parent f1f58271
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,10 @@ ...@@ -15,7 +15,10 @@
ModuleError) ModuleError)
env = os.environ.copy()
env['LC_ALL'] = 'C'
typeset_func = subprocess.Popen('module avail', typeset_func = subprocess.Popen('module avail',
env=env,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True) shell=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment