Skip to content

fix(tests): update pformat/pprint assertions for Py3.15#3400

Open
traylenator wants to merge 1 commit into
python-gitlab:mainfrom
traylenator:315
Open

fix(tests): update pformat/pprint assertions for Py3.15#3400
traylenator wants to merge 1 commit into
python-gitlab:mainfrom
traylenator:315

Conversation

@traylenator
Copy link
Copy Markdown

Changes

Python 3.15 changed the default behaviour of pprint.PrettyPrinter:

  • default indent changed from 1 to 4
  • default width changed from 80 to 88
  • default compact=False layout now places opening braces/brackets on their own line with contents indented, similar to pretty-printed JSON

See: https://docs.python.org/3.15/library/pprint.html (gh-112632)

Python 3.15 changed the default behaviour of pprint.PrettyPrinter:
- default indent changed from 1 to 4
- default width changed from 80 to 88
- default compact=False layout now places opening braces/brackets on
  their own line with contents indented, similar to pretty-printed JSON

See: https://docs.python.org/3.15/library/pprint.html (gh-112632)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant