Skip to content

Commit 24138db

Browse files
author
Alex Milstead
committed
Fix logger deprecation warning test.
1 parent 488c741 commit 24138db

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/test_logger.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ def test_log__deprecation_warning(self):
2929
with warnings_patch as patched_warnings, actual_log_patch as log_patch:
3030
simple_logger.log(logging.INFO, 'Message')
3131

32-
deprecation_warning = 'optimizely.logger.SimpleLogger is deprecated. ' \
33-
'Please use standard python loggers.'
34-
patched_warnings.assert_called_once_with(
35-
deprecation_warning,
36-
DeprecationWarning
37-
)
32+
msg = "<class 'optimizely.logger.SimpleLogger'> is deprecated. " \
33+
"Please use standard python loggers."
34+
patched_warnings.assert_called_once_with(msg, DeprecationWarning)
3835
log_patch.log.assert_called_once_with(logging.INFO, 'Message')
3936

4037

0 commit comments

Comments
 (0)