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

Function test_cache_unicode

IPython/core/tests/test_compilerop.py:55–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 nt.assert_equal(sys.getdefaultencoding(), "utf-8")
54
55def test_cache_unicode():
56 cp = compilerop.CachingCompiler()
57 ncache = len(linecache.cache)
58 cp.cache(u"t = 'žćčšđ'")
59 nt.assert_true(len(linecache.cache) > ncache)
60
61def test_compiler_check_cache():
62 """Test the compiler properly manages the cache.

Callers

nothing calls this directly

Calls 1

cacheMethod · 0.95

Tested by

no test coverage detected