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

* bpo-30778: Skip test_bsddb3 on Windows XP

* Fix if, don't skip Windows Vista
diff --git a/Lib/test/test_bsddb3.py b/Lib/test/test_bsddb3.py
index 099145b..1a82325 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):