Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/py-spyder-kernels: Improve testsuite
The test_user_sitepackages_in_pathlist did not work because FreeBSD was not detected. While here, remove devel/py-pytest from TEST_DEPENDS and clean up Makefile.
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
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
11 changes: 11 additions & 0 deletions
11
devel/py-spyder-kernels/files/patch-spyder__kernels_customize_tests_test__utils.py
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,11 @@ | ||
--- spyder_kernels/customize/tests/test_utils.py.orig 2020-03-04 22:59:51 UTC | ||
+++ spyder_kernels/customize/tests/test_utils.py | ||
@@ -16,7 +16,7 @@ def test_user_sitepackages_in_pathlist(): | ||
"""Test that we include user site-packages in pathlist.""" | ||
if sys.platform.startswith('linux'): | ||
user_path = 'local' | ||
- elif sys.platform == 'darwin': | ||
+ elif (sys.platform.startswith('darwin') | sys.platform.startswith('freebsd')): | ||
user_path = os.path.expanduser('~/.local') | ||
else: | ||
user_path = 'Roaming' |