def test_logging_magic_quiet_from_arg():
    _ip.config.LoggingMagics.quiet = False
    lm = logging.LoggingMagics(shell=_ip)
    with TemporaryDirectory() as td:
        try:
            with tt.AssertNotPrints(re.compile('Activating.*')):
                lm.logstart('-q {}'.format(os.path.join(td, 'quiet_from_arg.log')))
        finally:
            _ip.logger.logstop()
def test_logging_magic_quiet_from_arg():
    _ip.config.LoggingMagics.quiet = False
    lm = logging.LoggingMagics(shell=_ip)
    with TemporaryDirectory() as td:
        try:
            with tt.AssertNotPrints(re.compile('Activating.*')):
                lm.logstart('-q {}'.format(os.path.join(td, 'quiet_from_arg.log')))
        finally:
            _ip.logger.logstop()