Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve test_pretty_environ comments for clarity
Co-authored-by: Carreau <335567+Carreau@users.noreply.github.com>
  • Loading branch information
Copilot and Carreau committed Feb 10, 2026
commit 362204bee52ea3a9b08e808cac50eeb589f93df9
4 changes: 2 additions & 2 deletions tests/test_pretty.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ def test_pretty_environ():
env_repr = pretty.pretty(os.environ)
# In Python 3.12+, os.environ has a __repr__ that returns environ({...})
# which may be used instead of the custom pretty printer in some configurations
expected_custom = "environ" + dict_indented # Custom printer: environ{...}
expected_repr = f"environ({dict_repr})" # Built-in repr: environ({...})
expected_custom = "environ" + dict_indented # Custom printer: environ directly concatenated with dict repr
expected_repr = f"environ({dict_repr})" # Built-in repr: environ with parentheses around dict repr
assert env_repr == expected_custom or env_repr == expected_repr


Expand Down