()
| 520 | |
| 521 | @pytest.mark.skipif(sys.version_info[1] == 12, reason="issue on old-deps + python 3.12") |
| 522 | def test_pretty_environ(): |
| 523 | dict_repr = pretty.pretty(dict(os.environ)) |
| 524 | # reindent to align with 'environ' prefix |
| 525 | dict_indented = dict_repr.replace("\n", "\n" + (" " * len("environ"))) |
| 526 | env_repr = pretty.pretty(os.environ) |
| 527 | assert env_repr == "environ" + dict_indented |
| 528 | |
| 529 | |
| 530 | def test_function_pretty(): |