Skip to content

Commit b3bd1f3

Browse files
committed
Remove broken test for #368
The issue was caused by self.show returning stdout and stderr As it now returns only stderr the issue is no longer possible
1 parent 870dc0c commit b3bd1f3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test/framework/modules.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -722,24 +722,6 @@ def test_modulefile_path(self):
722722
res = modtool.modulefile_path('bzip2/.1.0.6', strip_ext=True)
723723
self.assertTrue(res.endswith('test/framework/modules/bzip2/.1.0.6'))
724724

725-
# hack into 'module show GCC/6.4.0-2.28' cache and inject alternate output that modulecmd.tcl sometimes produces
726-
# make sure we only extract the module file path, nothing else...
727-
# cfr. https://github.com/easybuilders/easybuild/issues/368
728-
modulepath = os.environ['MODULEPATH'].split(':')
729-
mod_show_cache_key = modtool.mk_module_cache_key('GCC/6.4.0-2.28')
730-
mod.MODULE_SHOW_CACHE[mod_show_cache_key] = '\n'.join([
731-
"import os",
732-
"os.environ['MODULEPATH_modshare'] = '%s'" % ':'.join(m + ':1' for m in modulepath),
733-
"os.environ['MODULEPATH'] = '%s'" % ':'.join(modulepath),
734-
"------------------------------------------------------------------------------",
735-
"%s:" % gcc_mod_file,
736-
"------------------------------------------------------------------------------",
737-
# remainder of output doesn't really matter in this context
738-
"setenv EBROOTGCC /prefix/GCC/6.4.0-2.28"
739-
])
740-
res = modtool.modulefile_path('GCC/6.4.0-2.28')
741-
self.assertTrue(os.path.samefile(res, os.path.join(test_dir, 'modules', 'GCC', '6.4.0-2.28')))
742-
743725
reset_module_caches()
744726

745727
def test_path_to_top_of_module_tree(self):

0 commit comments

Comments
 (0)