1
0

Accepting request 893812 from home:bnavigator:branches:devel:languages:python:numeric

- Sanitize absolute import path for Python 3.9 nbval test

OBS-URL: https://build.opensuse.org/request/show/893812
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-python-sofa?expand=0&rev=9
This commit is contained in:
2021-05-17 17:51:28 +00:00
committed by Git OBS Bridge
parent b79bc5f13d
commit 6e48246f55
2 changed files with 14 additions and 3 deletions

View File

@@ -63,11 +63,17 @@ by the SOFA conventions (version 1.0).
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
echo '[regex1]
echo "
[regex1]
regex: DateCreated: .*
replace: DateCreated: 0000-00-00 00:00:00
' > nodate.cfg
%pytest --nbval --sanitize-with nodate.cfg doc/examples/SOFA-file-access.ipynb
[regex2]
regex: <module 'sofa' from '.*'
replace: <module 'sofa' from 'somewhere'
" > nbval_sanitize.cfg
%pytest --nbval --sanitize-with nbval_sanitize.cfg doc/examples/SOFA-file-access.ipynb
%files %{python_files}
%doc README.rst