diff options
author | Steven Knight <knight@baldmt.com> | 2009-02-26 14:41:05 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-02-26 14:41:05 (GMT) |
commit | 22364c2fd6117fefb82e0addb7e9efca027e5c2e (patch) | |
tree | ff61ff73309ee6d57dca7452cfbfa0a2650e89c9 /src/test_pychecker.py | |
parent | 3cc05563a7780fe442be945478c9db180e5b4ba8 (diff) | |
download | SCons-22364c2fd6117fefb82e0addb7e9efca027e5c2e.zip SCons-22364c2fd6117fefb82e0addb7e9efca027e5c2e.tar.gz SCons-22364c2fd6117fefb82e0addb7e9efca027e5c2e.tar.bz2 |
Capture some minor updates while investigating possible patches to enable
use of pychecker on our code base. The test itself is still disabled.
Diffstat (limited to 'src/test_pychecker.py')
-rw-r--r-- | src/test_pychecker.py | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/test_pychecker.py b/src/test_pychecker.py index 37eea4c..20aae69 100644 --- a/src/test_pychecker.py +++ b/src/test_pychecker.py @@ -70,8 +70,16 @@ files = filter(lambda f: f[-3:] == '.py', files) ignore = [ 'SCons/compat/__init__.py', + 'SCons/compat/_scons_UserString.py', + 'SCons/compat/_scons_hashlib.py', + 'SCons/compat/_scons_itertools.py', + 'SCons/compat/_scons_optparse.py', + 'SCons/compat/_scons_sets.py', + 'SCons/compat/_scons_sets15.py', + 'SCons/compat/_scons_shlex.py', + 'SCons/compat/_scons_subprocess.py', + 'SCons/compat/_scons_textwrap.py', 'SCons/compat/builtins.py', - 'SCons/compat/_subprocess.py', ] u = {} @@ -92,6 +100,10 @@ mismatches = [] default_arguments.extend([ '--quiet', '--limit=1000', + # Suppress warnings about unused arguments to functions and methods. + # We have too many wrapper functions that intentionally only use some + # of their arguments. + '--no-argsused', ]) if sys.platform == 'win32': @@ -100,9 +112,10 @@ if sys.platform == 'win32': ]) per_file_arguments = { - 'SCons/__init__.py' : [ - '--varlist', '"__revision__,__version__,__build__,__buildsys__,__date__,__developer__"', - ], + #'SCons/__init__.py' : [ + # '--varlist', + # '"__revision__,__version__,__build__,__buildsys__,__date__,__developer__"', + #], } pywintypes_warning = "warning: couldn't find real module for class pywintypes.error (module name: pywintypes)\n" @@ -111,8 +124,9 @@ os.environ['PYTHONPATH'] = src_engine for file in files: - file = os.path.join(src_engine, file) - args = default_arguments + per_file_arguments.get(file, []) + [file] + args = (default_arguments + + per_file_arguments.get(file, []) + + [os.path.join(src_engine, file)]) test.run(program=program, arguments=args, status=None, stderr=None) |