Skip to content

Commit f3a991f

Browse files
author
Sylvain MARIE
committed
Fix for python 2 and old pytest
1 parent eda7742 commit f3a991f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_cases/tests/pytest_extension/parametrize_plus/test_lazy_value__custom_ids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def id_generator(**objs):
1616
# return "-".join("%s=%s" % (k, v) for k, v in objs.items())
1717
# to get deterministic results we need this:
1818
if len(objs) > 1:
19-
assert objs.keys() == {'a', 'b'}
19+
assert set(objs.keys()) == {'a', 'b'}
2020
return "-".join("%s=%s" % (k, objs[k]) for k in ('a', 'b'))
2121
else:
2222
return "-".join("%s=%s" % (k, v) for k, v in objs.items())

0 commit comments

Comments
 (0)