Skip to content

Commit cc2a478

Browse files
authored
and capture the dep. warning
1 parent 8d8029d commit cc2a478

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/framework/modules.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,8 +1544,9 @@ def test_modulecmd_strip_source(self):
15441544
os.environ['PATH'] = '%s:%s' % (self.test_prefix, os.getenv('PATH'))
15451545

15461546
self.allow_deprecated_behaviour()
1547-
modtool = EnvironmentModulesC()
1548-
modtool.run_module('load', 'test123')
1547+
with self.mocked_stdout_stderr():
1548+
modtool = EnvironmentModulesC()
1549+
modtool.run_module('load', 'test123')
15491550
self.assertEqual(os.getenv('TEST123'), 'test123')
15501551

15511552
def test_get_setenv_value_from_modulefile(self):

0 commit comments

Comments
 (0)