Skip to content

Commit b28eb06

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7a40fc1 commit b28eb06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testing/io/test_pprint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,17 +445,17 @@ def test_dict_preserves_insertion_order() -> None:
445445

446446
def test_dict_insertion_order_with_depth() -> None:
447447
"""Test dict insertion order in _safe_repr (used with maxlevels/depth).
448-
448+
449449
This test ensures the _safe_repr method also preserves insertion order
450450
when it formats dicts at maximum depth levels.
451451
"""
452452
# Create nested dict structure with non-alphabetical keys
453453
d = {"z": {"inner": 1}, "a": {"inner": 2}, "m": {"inner": 3}}
454-
454+
455455
# Use depth parameter to trigger _safe_repr path
456456
pp = PrettyPrinter(depth=1)
457457
result = pp.pformat(d)
458-
458+
459459
# Verify insertion order is preserved (z before a before m)
460460
z_pos = result.index("'z'")
461461
a_pos = result.index("'a'")

0 commit comments

Comments
 (0)