Skip to content

Commit 2b4e043

Browse files
committed
fix test_modulerc by taking into account that wrapper module may also be shown as being loaded
1 parent 0813e82 commit 2b4e043

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/framework/module_generator.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,10 +589,9 @@ def test_modulerc(self):
589589

590590
# loading of module with symbolic version works
591591
self.modtool.load(['test/1.2.3'])
592-
# test/1.2.3.4.5 is actually loaded (rather than test/1.2.3)
592+
# test/1.2.3.4.5 is actually loaded
593593
res = self.modtool.list()
594-
self.assertEqual(len(res), 1)
595-
self.assertEqual(res[0]['mod_name'], 'test/1.2.3.4.5')
594+
self.assertTrue(any(x['mod_name'] == 'test/1.2.3.4.5' for x in res))
596595

597596
# if same symbolic version is added again, nothing changes
598597
self.modgen.modulerc(mod_ver_spec, filepath=modulerc_path)

0 commit comments

Comments
 (0)