From 6e48246f55e004c672ab46ccff251d3a9bf6ab9856f64ae009d73c1887817741 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 May 2021 17:51:28 +0000 Subject: [PATCH] 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 --- python-python-sofa.changes | 5 +++++ python-python-sofa.spec | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/python-python-sofa.changes b/python-python-sofa.changes index 57f0250..e841d18 100644 --- a/python-python-sofa.changes +++ b/python-python-sofa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 17 16:49:25 UTC 2021 - Ben Greiner + +- Sanitize absolute import path for Python 3.9 nbval test + ------------------------------------------------------------------- Mon Mar 8 16:30:44 UTC 2021 - Ben Greiner diff --git a/python-python-sofa.spec b/python-python-sofa.spec index 126f066..0d59067 100644 --- a/python-python-sofa.spec +++ b/python-python-sofa.spec @@ -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: nbval_sanitize.cfg +%pytest --nbval --sanitize-with nbval_sanitize.cfg doc/examples/SOFA-file-access.ipynb %files %{python_files} %doc README.rst