Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update regression tests due to improved inference in astroid #4325

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/functional/l/logging_format_interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ class Logger(renamed_logging.Logger):
pass

custom_logger = Logger('three')
custom_logger.info('testing {0}'.format('info'))
custom_logger.info('testing %s' % 'info')
custom_logger.info('testing {0}'.format('info')) # [logging-format-interpolation]
custom_logger.info('testing %s' % 'info') # [logging-not-lazy]
2 changes: 2 additions & 0 deletions tests/functional/l/logging_format_interpolation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ logging-format-interpolation:17:43::Use lazy % formatting in logging functions
logging-format-interpolation:18:22::Use lazy % formatting in logging functions
logging-format-interpolation:19:43::Use lazy % formatting in logging functions
logging-format-interpolation:20:21::Use lazy % formatting in logging functions
logging-format-interpolation:36:19::Use lazy % formatting in logging functions
logging-not-lazy:37:0::Use lazy % formatting in logging functions