[Zodb-checkins] CVS: ZODB3 - test.py:1.27
Tim Peters
tim.one at comcast.net
Mon Jan 5 15:40:39 EST 2004
Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv5201
Modified Files:
test.py
Log Message:
Suppress the long warning message from Persistence.__init__ when running
the test suite.
=== ZODB3/test.py 1.26 => 1.27 ===
--- ZODB3/test.py:1.26 Thu Oct 2 14:17:32 2003
+++ ZODB3/test.py Mon Jan 5 15:40:33 2004
@@ -617,6 +617,8 @@
def process_args(argv=None):
import getopt
+ import warnings
+
global module_filter
global test_filter
global VERBOSE
@@ -634,6 +636,20 @@
global progress
global build_inplace
global functional
+
+ # Persistence.__init__ generates a long warning message about the
+ # the failure of
+ # from _Persistence import Persistent
+ # for the benefit of people expecting that to work from previous (pre 3.3)
+ # ZODB3 releases. We don't need to see that msg every time we run the
+ # test suite, though, and it's positively unhelpful to see it in this
+ # context.
+ # NOTE: "(?s)" enables re.SINGLELINE, so that the ".*" can suck up
+ # newlines.
+ warnings.filterwarnings("ignore",
+ message="(?s)Couldn't import the ExtensionClass-based base class.*"
+ "There are two possibilities:",
+ category=UserWarning)
if argv is None:
argv = sys.argv
More information about the Zodb-checkins
mailing list