File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 81
81
- name : Test pytest plugin
82
82
# This test will fail in a venv where scipy_doctest has not been installed and the plugin has not been activated
83
83
run : |
84
- test_files=("scipy_doctest/tests/module_cases.py" "scipy_doctest/tests/stopwords_cases.py")
84
+ test_files=("scipy_doctest/tests/module_cases.py" "scipy_doctest/tests/stopwords_cases.py" "scipy_doctest/tests/local_file_cases.py" )
85
85
for file in "${test_files[@]}"; do
86
86
python -m pytest "${file}" --doctest-modules
87
87
done
Original file line number Diff line number Diff line change 3
3
# Specify local files required by doctests
4
4
dt_config .local_resources = {
5
5
'scipy_doctest.tests.local_file_cases.local_files' : ['local_file.txt' ],
6
- 'scipy_doctest.local_file_cases.sio' : ['octave_a.mat' ]
6
+ 'scipy_doctest.tests. local_file_cases.sio' : ['octave_a.mat' ]
7
7
}
8
8
9
9
Original file line number Diff line number Diff line change @@ -49,11 +49,9 @@ def test_stopword_cases(pytester):
49
49
assert result .ret == pytest .ExitCode .OK
50
50
51
51
52
- @pytest .mark .xfail (reason = "XXX: passes locally, fails on CI" )
53
52
@pytest .mark .skipif (not HAVE_SCIPY , reason = 'need scipy' )
54
53
def test_local_file_cases (pytester ):
55
- """Test that local files are found for use in doctests.
56
- """
54
+ """Test that local files are found for use in doctests."""
57
55
path_str = local_file_cases .__file__
58
56
python_file = Path (path_str )
59
57
result = pytester .inline_run (python_file , "--doctest-modules" )
You can’t perform that action at this time.
0 commit comments