diff options
author | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-02-14 18:13:20 +0200 |
---|---|---|
committer | Ionel Cristian Maries <contact@ionelmc.ro> | 2015-02-14 18:13:20 +0200 |
commit | 6d8412476a296b3a3691af1ffabcb672d9a4920f (patch) | |
tree | e358c7e886ff4d67d0efc6263f0472655efddfff /pylint/test/input/func_e12xx.py | |
parent | 0369bd6a914af3ad92ce53eac3786bf8de785f7f (diff) | |
download | pylint-6d8412476a296b3a3691af1ffabcb672d9a4920f.tar.gz |
Move all package files to a pylint package.
Diffstat (limited to 'pylint/test/input/func_e12xx.py')
-rw-r--r-- | pylint/test/input/func_e12xx.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pylint/test/input/func_e12xx.py b/pylint/test/input/func_e12xx.py new file mode 100644 index 0000000..67475d1 --- /dev/null +++ b/pylint/test/input/func_e12xx.py @@ -0,0 +1,27 @@ +# pylint: disable=E1101, no-absolute-import +"""Test checking of log format strings +""" + +__revision__ = '' + +import logging + +def pprint(): + """Test string format in logging statements. + """ + # These should all emit lint errors: + logging.info(0, '') # 1205 + logging.info('', '') # 1205 + logging.info('%s%', '') # 1201 + logging.info('%s%s', '') # 1206 + logging.info('%s%y', '', '') # 1200 + logging.info('%s%s', '', '', '') # 1205 + + # These should be okay: + logging.info(1) + logging.info(True) + logging.info('') + logging.info('%s%') + logging.info('%s', '') + logging.info('%s%%', '') + logging.info('%s%s', '', '') |