]> granicus.if.org Git - python/commitdiff
bpo-30778: Skip test_bsddb3 on Windows XP (#2877)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 26 Jul 2017 15:55:52 +0000 (17:55 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jul 2017 15:55:52 +0000 (17:55 +0200)
* bpo-30778: Skip test_bsddb3 on Windows XP

* Fix if, don't skip Windows Vista

Lib/test/test_bsddb3.py

index 099145b460ae27de999afcb329cbea8b5b386986..1a82325d49358d0d358d0a97c5d253802ffff944 100644 (file)
@@ -28,6 +28,10 @@ if 'silent' in sys.argv:  # take care of old flag, just in case
     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):