[Buildbot-commits] [Buildbot] #1943: Suppress warnings from old twisted on Darwin

Buildbot nobody at buildbot.net
Sun May 1 02:43:45 UTC 2011


#1943: Suppress warnings from old twisted on Darwin
------------------------+-----------------------
Reporter:  dabrahams    |      Owner:
    Type:  enhancement  |     Status:  new
Priority:  major        |  Milestone:  undecided
 Version:  0.8.3p1      |   Keywords:
------------------------+-----------------------
 MacOS users are saddled with twisted 0.8.2 because upgrading apparently
 disturbs some built-in functionality of MacOS.  As a result, these
 warnings occur:

 {{{
 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/internet/_sslverify.py:5:
 DeprecationWarning: the md5 module is deprecated; use hashlib instead
   import itertools, md5
 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/python/filepath.py:12:
 DeprecationWarning: the sha module is deprecated; use the hashlib module
 instead
   import sha
 /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twisted/web/microdom.py:181:
 SyntaxWarning: assertion is always true, perhaps remove parentheses?
   assert (oldChild.parentNode is self,
 /Library/Python/2.6/site-packages/lazy_reload.py:83: DeprecationWarning:
 the MimeWriter module is deprecated; use the email package instead
 }}}

 These warnings interfere with my local configuration testing.
 Buildbot gives me no way to suppress these warnings other than by patching
 the installed buildbot executable, which I do by adding:

 {{{
 #!python
 from warnings import filterwarnings
 filterwarnings('ignore', r'the .* module is deprecated; use .*
 instead|assertion is always true, perhaps remove parentheses\?')
 }}}

 It would be nicer if BB took care of this for me.  I guess I couldn't
 really blame you if you decided this was a twisted issue, but as I say,
 twisted can't be upgraded.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1943>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list