Skip to content

Commit ad2b46e

Browse files
author
Sylvain MARIE
committed
Fixed test for ordering issues
1 parent 4cdd7c1 commit ad2b46e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyfields/tests/test_readme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,6 @@ class Foo:
460460
print(dict(foo)) # dict view
461461

462462
assert str(foo) == "Foo(msg='hello', age=12)"
463-
assert str(dict(foo)) == "{'msg': 'hello', 'age': 12}"
463+
assert str(dict(foo)) in ("{'msg': 'hello', 'age': 12}", "{'age': 12, 'msg': 'hello'}")
464464
assert foo == Foo(msg='hello', age=12) # comparison (equality)
465465
assert foo == {'msg': 'hello', 'age': 12} # comparison with dicts

0 commit comments

Comments
 (0)