diff options
author | Michael Kuhn <michael@ikkoku.de> | 2019-04-05 20:26:40 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-04-05 11:26:40 -0700 |
commit | 320e00276fa7f3cee2af6992f863f36a5b855d3d (patch) | |
tree | 49939c27eeb7bd4b44d123e5b85fc8844c1061bd /lib | |
parent | f1f582714c313d21b1f358773bd64261b7c0f77a (diff) | |
download | spack-320e00276fa7f3cee2af6992f863f36a5b855d3d.tar.gz spack-320e00276fa7f3cee2af6992f863f36a5b855d3d.tar.bz2 spack-320e00276fa7f3cee2af6992f863f36a5b855d3d.tar.xz spack-320e00276fa7f3cee2af6992f863f36a5b855d3d.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/module_parsing.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/spack/spack/test/module_parsing.py b/lib/spack/spack/test/module_parsing.py index 1e1c3a993b..fc8111408f 100644 --- a/lib/spack/spack/test/module_parsing.py +++ b/lib/spack/spack/test/module_parsing.py @@ -15,7 +15,10 @@ from spack.util.module_cmd import ( 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) |