bpo-30778: Skip test_bsddb3 on Windows XP by vstinner · Pull Request #2877 · python/cpython (original) (raw)
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation5 Commits2 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
PR closed then reopened to retry AppVeyor. Previously, AppVeyor failed with: "continuous-integration/appveyor/pr — AppVeyor was unable to build non-mergeable pull request".
@@ -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): |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6.0 was Vista which we don't want to skip, so <
rather than <=
.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I know that, it's a mistake. It's now fixed.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could play code golf to get it down to (or beyond) if getattr(sys, 'getwindowsversion', lambda: (9,))()[:1] < (6,):
, but this is fine as is :)
if getattr(sys, 'getwindowsversion', lambda: (9,))()[:1] < (6,):
Nice one, but I prefer my syntax ;-)