()
| 1832 | |
| 1833 | |
| 1834 | def test_logging_magic_quiet_from_arg(): |
| 1835 | _ip.config.LoggingMagics.quiet = False |
| 1836 | lm = logging.LoggingMagics(shell=_ip) |
| 1837 | with TemporaryDirectory() as td: |
| 1838 | try: |
| 1839 | with tt.AssertNotPrints(re.compile("Activating.*")): |
| 1840 | lm.logstart("-q {}".format(os.path.join(td, "quiet_from_arg.log"))) |
| 1841 | finally: |
| 1842 | _ip.logger.logstop() |
| 1843 | |
| 1844 | |
| 1845 | def test_logging_magic_quiet_from_config(): |