Skip to content

Commit fd86aca

Browse files
authored
Merge pull request mjs#384 from mgorny/py36-loggertest-fix
test_imapclient: Fix LoggerAdapter version check
2 parents 202398c + 26fb9c9 commit fd86aca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_imapclient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ def test_redacted_password(self):
604604
adapter = IMAPlibLoggerAdapter(logger_mock, dict())
605605
if six.PY3:
606606
adapter.info("""> b'ICHH1 LOGIN [email protected] "secret"'""")
607-
if sys.version_info >= (3, 7):
608-
# LoggerAdapter in Python 3.7+ calls logger.log()
607+
if sys.version_info >= (3, 6, 4):
608+
# LoggerAdapter in Python 3.6.4+ calls logger.log()
609609
logger_mock.log.assert_called_once_with(
610610
logging.INFO,
611611
"> b'ICHH1 LOGIN **REDACTED**",

0 commit comments

Comments
 (0)