Skip to content

Commit

Permalink
test: fix test for SCardGetErrorMessage(1) on Mojave
Browse files Browse the repository at this point in the history
And do not fail on other Unixes.
  • Loading branch information
LudovicRousseau committed Nov 22, 2018
1 parent b6e7b93 commit 89c52ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_SCardGetErrorMessage.py
Expand Up @@ -30,7 +30,7 @@ def test_SCardGetErrorMessage(self):

res = SCardGetErrorMessage(1)
# macOS bug not yet fixed
if get_platform() < 'macosx-10.13':
if get_platform().startswith('macosx-') and get_platform() < 'macosx-10.13':
expected = "Unkown error: 0x00000001"
else:
expected = "Unknown error: 0x00000001"
Expand Down

0 comments on commit 89c52ba

Please sign in to comment.