MCPcopy Create free account
hub / github.com/ipython/ipython / test_detect_encoding

Function test_detect_encoding

IPython/utils/tests/test_openpy.py:11–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10
11def test_detect_encoding():
12 with open(nonascii_path, "rb") as f:
13 enc, lines = openpy.detect_encoding(f.readline)
14 nt.assert_equal(enc, "iso-8859-5")
15
16
17def test_read_file():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected