Skip to content

Commit 95ecd51

Browse files
committed
Fix comparison of view to list in python3
In python3, the items method returns a view which won't be equal to a list. One needs to cast out of the view to make it equal.
1 parent bb24267 commit 95ecd51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_34_population.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,6 @@ def test_modify_person(self):
170170
"eduPersonEntitlement": "Anka"}
171171

172172
info = self.population.get_info_from(nid, IDP_OTHER)
173-
assert info.keys() == ["not_on_or_after", "name_id", "ava"]
173+
assert list(info.keys()) == ["not_on_or_after", "name_id", "ava"]
174174
assert info["name_id"] == nid
175175
assert info["ava"] == {"eduPersonEntitlement": "Anka"}

0 commit comments

Comments
 (0)