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

Function test_logging_magic_not_quiet

IPython/core/tests/test_magic.py:1212–1220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1210
1211
1212def test_logging_magic_not_quiet():
1213 _ip.config.LoggingMagics.quiet = False
1214 lm = logging.LoggingMagics(shell=_ip)
1215 with TemporaryDirectory() as td:
1216 try:
1217 with tt.AssertPrints(re.compile("Activating.*")):
1218 lm.logstart(os.path.join(td, "not_quiet.log"))
1219 finally:
1220 _ip.logger.logstop()
1221
1222
1223def test_time_no_var_expand():

Callers

nothing calls this directly

Calls 2

logstartMethod · 0.95
logstopMethod · 0.45

Tested by

no test coverage detected