Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-30778: Skip test_bsddb3 on Windows XP#2877

Merged
vstinner merged 2 commits intopython:2.7python/cpython:2.7from
vstinner:test_bsddb3_xpCopy head branch name to clipboard
Jul 26, 2017
Merged

bpo-30778: Skip test_bsddb3 on Windows XP#2877
vstinner merged 2 commits intopython:2.7python/cpython:2.7from
vstinner:test_bsddb3_xpCopy head branch name to clipboard

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jul 26, 2017

@vstinner vstinner added OS-windows tests Tests in the Lib/test dir labels Jul 26, 2017
@vstinner vstinner requested a review from zware July 26, 2017 00:22
@vstinner vstinner closed this Jul 26, 2017
@vstinner vstinner reopened this Jul 26, 2017
@vstinner
Copy link
Member Author

PR closed then reopened to retry AppVeyor. Previously, AppVeyor failed with: "continuous-integration/appveyor/pr — AppVeyor was unable to build non-mergeable pull request".

sys.argv.remove('silent')

# bpo-30778: test_bsddb3 crashs randomly on Windows XP
if hasattr(sys, 'getwindowsversion') and sys.getwindowsversion()[:2] <= (6, 0):
Copy link
Member

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 <=.

Copy link
Member Author

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.

Copy link
Member

@zware zware left a comment

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 :)

@vstinner vstinner merged commit 0cba38d into python:2.7 Jul 26, 2017
@vstinner vstinner deleted the test_bsddb3_xp branch July 26, 2017 15:55
@vstinner
Copy link
Member Author

if getattr(sys, 'getwindowsversion', lambda: (9,))()[:1] < (6,):

Nice one, but I prefer my syntax ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OS-windows tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.