diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2008-09-18 02:47:35 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2008-09-18 02:47:35 (GMT) |
commit | 9f381ec50bb82cc441250c6eefd8355ea14187d7 (patch) | |
tree | 7faad4537316f8f934635431030d3df70299a11d /Lib/bsddb/test | |
parent | 8c2b7dc46360f5610e25476c4dc0680ea3b06234 (diff) | |
download | cpython-9f381ec50bb82cc441250c6eefd8355ea14187d7.zip cpython-9f381ec50bb82cc441250c6eefd8355ea14187d7.tar.gz cpython-9f381ec50bb82cc441250c6eefd8355ea14187d7.tar.bz2 |
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.
Diffstat (limited to 'Lib/bsddb/test')
-rw-r--r-- | Lib/bsddb/test/test_replication.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Lib/bsddb/test/test_replication.py b/Lib/bsddb/test/test_replication.py index 79df974..25f03db 100644 --- a/Lib/bsddb/test/test_replication.py +++ b/Lib/bsddb/test/test_replication.py @@ -119,7 +119,19 @@ class DBReplicationManager(unittest.TestCase): 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) |