-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570 from Darsstar/bugfix/config_root
Fix keyring.util.platform_.config_root on Windows
- Loading branch information
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
v23.5.1 | ||
------- | ||
|
||
* The correct config root is now used on Windows. | ||
|
||
v23.5.0 | ||
------- | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import pytest | ||
|
||
from keyring.util import platform_ | ||
|
||
|
||
@pytest.mark.skipif('platform.system() != "Linux"') | ||
def test_platform_Linux(): | ||
assert platform_.config_root == platform_._config_root_Linux | ||
assert platform_.data_root == platform_._data_root_Linux | ||
|
||
|
||
@pytest.mark.skipif('platform.system() != "Windows"') | ||
def test_platform_Windows(): | ||
assert platform_.config_root == platform_._config_root_Windows | ||
assert platform_.data_root == platform_._data_root_Windows |