File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -445,17 +445,17 @@ def test_dict_preserves_insertion_order() -> None:
445445
446446def 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'" )
You can’t perform that action at this time.
0 commit comments