15
0

- Add appease-django-320.patch:

* Upstream patch to avoid a test failure with building with Django 3.2

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=36
This commit is contained in:
2021-04-28 07:51:06 +00:00
committed by Git OBS Bridge
parent 8d5b3bc930
commit 4e7ef42769
3 changed files with 26 additions and 4 deletions

View File

@@ -25,6 +25,8 @@ Summary: A collection of helpers and mock objects for unit tests and doc
License: MIT
URL: https://github.com/Simplistix/testfixtures
Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
# PATCH-FIX-UPSTREAM: gh#Simplistix/testfixtures/commit/52a14d92a122665b1a101e6398eca3982de01739
Patch0: appease-django-320.patch
BuildRequires: %{python_module Django}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module pytest >= 3.6}
@@ -57,6 +59,7 @@ their own library and give them some tests of their own!
%prep
%setup -q -n testfixtures-%{version}
%autopatch -p1
chmod a-x docs/*.txt
%build
@@ -70,8 +73,7 @@ chmod a-x docs/*.txt
%check
export DJANGO_SETTINGS_MODULE=testfixtures.tests.test_django.settings
export PYTHONPATH=$(pwd)
# gh#Simplistix/testfixtures#156
%pytest testfixtures/tests -k 'not test_manage'
%pytest testfixtures/tests
%files %{python_files}
%license LICENSE.txt