Seems like the patch that fixed skipping some warnings broke this.
This commit is contained in:
Ian Cordasco 2012-11-19 21:39:57 -05:00
parent 7d2b8e6b07
commit caab4bd18d

View file

@ -5,6 +5,9 @@ import os
def skip_warning(warning, ignore=[]):
# XXX quick dirty hack, just need to keep the line in the warning
if not hasattr(warning, message):
# McCabe's warnings cannot be skipped afaik, and they're all strings.
return False
if warning.message.split()[0] in ignore:
return True
if not os.path.isfile(warning.filename):