mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
don't log output during testing
This commit is contained in:
parent
993519c004
commit
4ab74d9a69
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ import os
|
|||
import shutil
|
||||
import textwrap
|
||||
from StringIO import StringIO
|
||||
import logging
|
||||
import _common
|
||||
sys.path.append('..')
|
||||
from beets import library
|
||||
|
|
@ -36,6 +37,10 @@ class ImportTest(unittest.TestCase):
|
|||
self.io = _common.DummyIO()
|
||||
self.io.install()
|
||||
|
||||
# Suppress logging output.
|
||||
log = logging.getLogger('beets')
|
||||
log.setLevel(logging.CRITICAL)
|
||||
|
||||
self.lib = library.Library(':memory:')
|
||||
self.libdir = os.path.join('rsrc', 'testlibdir')
|
||||
self.lib.directory = self.libdir
|
||||
|
|
|
|||
Loading…
Reference in a new issue