mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-30 12:22:58 +00:00
🐛 fix test
This commit is contained in:
@@ -42,8 +42,8 @@ def configure_logger(verbose: bool) -> None:
|
||||
verbose (bool):
|
||||
`True` to use verbose logger, `False` otherwise.
|
||||
"""
|
||||
tf_logger = tf_logging._get_logger()
|
||||
tf_logger.handlers = [handler]
|
||||
# tf_logger = tf_logging._get_logger()
|
||||
# tf_logger.handlers = [handler]
|
||||
if verbose:
|
||||
environ['TF_CPP_MIN_LOG_LEVEL'] = '1'
|
||||
tf_logging.set_verbosity(tf_logging.INFO)
|
||||
|
||||
@@ -101,7 +101,7 @@ def test_train():
|
||||
'-p', 'useless_config.json',
|
||||
'-d', path
|
||||
])
|
||||
raise IOError(f'STDOUT: {result.stdout}, STDERR: {result.stderr}')
|
||||
raise IOError(f'STDOUT: {result.stdout}')
|
||||
assert result.exit_code == 0
|
||||
# assert that model checkpoint was created.
|
||||
assert os.path.exists(join(path, 'model', 'model.ckpt-10.index'))
|
||||
|
||||
Reference in New Issue
Block a user