[Python-checkins] r66498 - python/trunk/Lib/bsddb/test/test_replication.py

mark.hammond python-checkins at python.org
Thu Sep 18 04:47:36 CEST 2008


Author: mark.hammond
Date: Thu Sep 18 04:47:35 2008
New Revision: 66498
Log:
On Windows, temporarily disable the bsddb test referenced in bug 3892. 
We do yell to stderr and the bug is marked as a blocker.
Reviewed by barry in #python-dev.
Modified:
 python/trunk/Lib/bsddb/test/test_replication.py
Modified: python/trunk/Lib/bsddb/test/test_replication.py
==============================================================================
--- python/trunk/Lib/bsddb/test/test_replication.py	(original)
+++ python/trunk/Lib/bsddb/test/test_replication.py	Thu Sep 18 04:47:35 2008
@@ -119,7 +119,19 @@
 timeout = time.time()+10
 while (time.time()<timeout) and not (self.confirmed_master and self.client_startupdone) :
 time.sleep(0.02)
- self.assertTrue(time.time()<timeout)
+ # this fails on Windows as self.client_startupdone never gets set
+ # to True - see bug 3892. BUT - even though this assertion
+ # fails on Windows the rest of the test passes - so to prove
+ # that we let the rest of the test run. Sadly we can't
+ # make use of raising TestSkipped() here (unittest still
+ # reports it as an error), so we yell to stderr.
+ import sys
+ if sys.platform=="win32":
+ print >> sys.stderr, \
+ "XXX - windows bsddb replication fails on windows and is skipped"
+ print >> sys.stderr, "XXX - Please see issue #3892"
+ else:
+ self.assertTrue(time.time()<timeout)
 
 d = self.dbenvMaster.repmgr_site_list()
 self.assertEquals(len(d), 1)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /