summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_bug113231.py
blob: 70602e21a84a57e384115d96c4ac4da91be0c9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# pylint: disable=E1101
# pylint: disable=C0103
# pylint: disable=R0903
"""test bugfix for #113231 in logging checker
"""
from __future__ import absolute_import
# Muck up the names in an effort to confuse...
import logging as renamed_logging

__revision__ = ''

class Logger(object):
    """Fake logger"""
    pass

logger = renamed_logging.getLogger(__name__)
fake_logger = Logger()

# Statements that should be flagged:
renamed_logging.warning('%s, %s' % (4, 5))
logger.warning('%s' % 5)

# Statements that should not be flagged:
fake_logger.warn('%s' % 5)