Commit 6bbc2fcf authored by Samuel GAIST's avatar Samuel GAIST

[test][algorithm_dependencies] Fix subscript key and value access from dictionaries

parent a09082e6
......@@ -73,8 +73,8 @@ def test_dependencies():
nose.tools.eq_(len(a.uses), 1)
nose.tools.eq_(len(a.libraries), 1)
nose.tools.eq_(a.uses.keys()[0], 'dep1')
nose.tools.eq_(a.uses.values()[0], 'user/dep/1')
nose.tools.eq_(list(a.uses.keys())[0], 'dep1')
nose.tools.eq_(list(a.uses.values())[0], 'user/dep/1')
a.uses = {}
a.uses['mod1'] = dep_name
......@@ -84,8 +84,8 @@ def test_dependencies():
nose.tools.eq_(len(a.uses), 1)
nose.tools.eq_(len(a.libraries), 1)
nose.tools.eq_(a.uses.keys()[0], 'mod1')
nose.tools.eq_(a.uses.values()[0], 'user/dep/1')
nose.tools.eq_(list(a.uses.keys())[0], 'mod1')
nose.tools.eq_(list(a.uses.values())[0], 'user/dep/1')
a.uses = {}
a.write()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment