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

Function test_logstart_inaccessible_file

tests/test_logger.py:10–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def test_logstart_inaccessible_file():
11 with pytest.raises(IOError):
12 _ip.logger.logstart(logfname="/") # Opening that filename will fail.
13
14 try:
15 _ip.run_cell("a=1") # Check it doesn't try to log this
16 finally:
17 _ip.logger.log_active = False # If this fails, don't let later tests fail
18
19
20def test_logstart_unicode():

Callers

nothing calls this directly

Calls 2

logstartMethod · 0.45
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…