()
| 20 | _ip.logger.log_active = False # If this fails, don't let later tests fail |
| 21 | |
| 22 | def 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() |