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

Function test_logstart_unicode

IPython/core/tests/test_logger.py:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 _ip.logger.log_active = False # If this fails, don't let later tests fail
21
22def test_logstart_unicode():
23 with TemporaryDirectory() as tdir:
24 logfname = os.path.join(tdir, "test_unicode.log")
25 _ip.run_cell("'abc€'")
26 try:
27 _ip.magic("logstart -to %s" % logfname)
28 _ip.run_cell("'abc€'")
29 finally:
30 _ip.logger.logstop()

Callers

nothing calls this directly

Calls 3

run_cellMethod · 0.45
magicMethod · 0.45
logstopMethod · 0.45

Tested by

no test coverage detected