[Zope3-checkins] SVN: Zope3/trunk/ Added a warning filter to get rid of the annoying warning from

Jim Fulton jim at zope.com
Mon Oct 31 15:22:31 EST 2005


Log message for revision 39786:
  Added a warning filter to get rid of the annoying warning from
  twisted.conch.ssh.
  

Changed:
  U   Zope3/trunk/test.py
  U   Zope3/trunk/zopeskel/bin/test.in

-=-
Modified: Zope3/trunk/test.py
===================================================================
--- Zope3/trunk/test.py	2005-10-31 20:22:28 UTC (rev 39785)
+++ Zope3/trunk/test.py	2005-10-31 20:22:30 UTC (rev 39786)
@@ -16,7 +16,7 @@
 
 $Id$
 """
-import sys, os
+import sys, os, warnings
 
 here = os.path.abspath(os.path.dirname(sys.argv[0]))
 
@@ -31,4 +31,8 @@
 
 defaults = ['--tests-pattern', '^f?tests$', '--test-path', src]
 
+# Get rid of twisted.conch.ssh warning
+warnings.filterwarnings(
+    'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh')
+
 sys.exit(testrunner.run(defaults))

Modified: Zope3/trunk/zopeskel/bin/test.in
===================================================================
--- Zope3/trunk/zopeskel/bin/test.in	2005-10-31 20:22:28 UTC (rev 39785)
+++ Zope3/trunk/zopeskel/bin/test.in	2005-10-31 20:22:30 UTC (rev 39786)
@@ -16,7 +16,7 @@
 
 $Id$
 """
-import sys, os
+import sys, os, warnings
 
 here = os.path.dirname(os.path.realpath(__file__))
 here = os.path.dirname(here)
@@ -37,4 +37,8 @@
 else:
     defaults += ['--test-path', instance_lib]
 
+# Get rid of twisted.conch.ssh warning
+warnings.filterwarnings(
+    'ignore', 'PyCrypto', RuntimeWarning, 'twisted[.]conch[.]ssh')
+
 sys.exit(testrunner.run(defaults))



More information about the Zope3-Checkins mailing list