Skip to content
Permalink
Browse files

Merge pull request #384 from mgorny/py36-loggertest-fix

test_imapclient: Fix LoggerAdapter version check
  • Loading branch information...
NicolasLM committed Aug 10, 2019
2 parents 202398c + 26fb9c9 commit fd86acaa53c6079323cda7949db178a16841f135
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_imapclient.py
@@ -604,8 +604,8 @@ def test_redacted_password(self):
adapter = IMAPlibLoggerAdapter(logger_mock, dict())
if six.PY3:
adapter.info("""> b'ICHH1 LOGIN foo@bar.org "secret"'""")
if sys.version_info >= (3, 7):
# LoggerAdapter in Python 3.7+ calls logger.log()
if sys.version_info >= (3, 6, 4):
# LoggerAdapter in Python 3.6.4+ calls logger.log()
logger_mock.log.assert_called_once_with(
logging.INFO,
"> b'ICHH1 LOGIN **REDACTED**",

0 comments on commit fd86aca

Please sign in to comment.
You can’t perform that action at this time.