()
| 8 | |
| 9 | |
| 10 | def 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 | |
| 20 | def test_logstart_unicode(): |