Fix test_info_repr #21746
Fixes test that fails locally in py27 when run in a terminal window wider than 80 characters.

- [x] closes #21746
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
