From d79587e1fd186d55ba4bb03099c55e77d55ad567720bf4d32f1450821fbabe2c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 30 Sep 2021 09:03:35 +0000 Subject: [PATCH] - Add --import-mode=importlib to make test suite work. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-core?expand=0&rev=18 --- python-google-cloud-core.changes | 5 +++++ python-google-cloud-core.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-google-cloud-core.changes b/python-google-cloud-core.changes index a53fc15..632ac07 100644 --- a/python-google-cloud-core.changes +++ b/python-google-cloud-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 30 09:03:28 UTC 2021 - Matej Cepl + +- Add --import-mode=importlib to make test suite work. + ------------------------------------------------------------------- Tue Aug 3 00:43:52 UTC 2021 - Steve Kowalik diff --git a/python-google-cloud-core.spec b/python-google-cloud-core.spec index 084dba9..7df4230 100644 --- a/python-google-cloud-core.spec +++ b/python-google-cloud-core.spec @@ -63,6 +63,7 @@ common helpers (e.g. base ``Client`` classes) used by all of the %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +export PYTEST_ADDOPTS="--import-mode=importlib" %pytest %files %{python_files}