From d18f942f279bba9b9e9a5c784023c80397d03257e8c5fd45b717b76c798034e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 23 Jun 2020 16:47:41 +0000 Subject: [PATCH] Accepting request 816624 from home:bnavigator:branches:devel:languages:python - use local source dir for pytest imports (tests are not installed) gh#openSUSE/python-rpm-macros#48 OBS-URL: https://build.opensuse.org/request/show/816624 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=27 --- python-testfixtures.changes | 6 ++++++ python-testfixtures.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/python-testfixtures.changes b/python-testfixtures.changes index 8b1fbae..0f7ab5e 100644 --- a/python-testfixtures.changes +++ b/python-testfixtures.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 23 15:51:53 UTC 2020 - Benjamin Greiner + +- use local source dir for pytest imports (tests are not installed) + gh#openSUSE/python-rpm-macros#48 + ------------------------------------------------------------------- Tue May 19 10:20:08 UTC 2020 - Tomáš Chvátal diff --git a/python-testfixtures.spec b/python-testfixtures.spec index 7f8829e..53f6f11 100644 --- a/python-testfixtures.spec +++ b/python-testfixtures.spec @@ -71,6 +71,7 @@ chmod a-x docs/*.txt %check export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings +export PYTHONPATH=$(pwd) %pytest testfixtures/tests %files %{python_files}