Skip to content

Commit ae9e083

Browse files
committed
Merge branch 'IMPROVEMENT-13503-OUTPUT-ORDER-OF-DICTIONARY-KEY' of github.com:wak327/pytest into IMPROVEMENT-13503-OUTPUT-ORDER-OF-DICTIONARY-KEY
2 parents edfef01 + 671d583 commit ae9e083

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/io/test_saferepr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,11 @@ def __repr__(self):
196196

197197
def test_saferepr_dict_insertion_order():
198198
from _pytest._io.saferepr import safeformat
199+
199200
d = {}
200201
d["z"] = 1
201202
d["a"] = 2
202203
d["m"] = 3
203204
output = safeformat(d)
204205
# output should contain 'z', 'a', 'm' in this order (not 'a', 'm', 'z')
205-
assert output.find("'z'") < output.find("'a'") < output.find("'m'")
206+
assert output.find("'z'") < output.find("'a'") < output.find("'m'")

0 commit comments

Comments
 (0)