[Python-checkins] bpo-30778: Skip test_bsddb3 on Windows XP (#2877)

Victor Stinner webhook-mailer at python.org
Wed Jul 26 11:55:54 EDT 2017


https://github.com/python/cpython/commit/0cba38d207dc233707b09787e6618cfca44cc2b7
commit: 0cba38d207dc233707b09787e6618cfca44cc2b7
branch: 2.7
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-07-26T17:55:52+02:00
summary:

bpo-30778: Skip test_bsddb3 on Windows XP (#2877)

* bpo-30778: Skip test_bsddb3 on Windows XP

* Fix if, don't skip Windows Vista

files:
M Lib/test/test_bsddb3.py

diff --git a/Lib/test/test_bsddb3.py b/Lib/test/test_bsddb3.py
index 099145b460a..1a82325d493 100644
--- a/Lib/test/test_bsddb3.py
+++ b/Lib/test/test_bsddb3.py
@@ -28,6 +28,10 @@
     verbose = False
     sys.argv.remove('silent')
 
+# bpo-30778: test_bsddb3 crashs randomly on Windows XP
+if hasattr(sys, 'getwindowsversion') and sys.getwindowsversion()[:2] < (6, 0):
+    raise unittest.SkipTest("bpo-30778: skip tests on Windows XP")
+
 
 class TimingCheck(unittest.TestCase):
 



More information about the Python-checkins mailing list