MCPcopy Index your code
hub / github.com/ipython/ipython / test_pretty_environ

Function test_pretty_environ

tests/test_pretty.py:522–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

520
521@pytest.mark.skipif(sys.version_info[1] == 12, reason="issue on old-deps + python 3.12")
522def 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
530def test_function_pretty():

Callers

nothing calls this directly

Calls 2

prettyMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…