forked from pool/python-testfixtures
- Add patch to fix build with python 3.8.3:
* python383.patch - Update to 6.14.1: * Fix bugs in comparison of :func:`~unittest.mock.call` objects where the :func:`repr` of the :func:`~unittest.mock.call` arguments were the same even when their attributes were not. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testfixtures?expand=0&rev=25
This commit is contained in:
committed by
Git OBS Bridge
parent
7c8c779822
commit
20b5a82685
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 19 10:20:08 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch to fix build with python 3.8.3:
|
||||
* python383.patch
|
||||
- Update to 6.14.1:
|
||||
* Fix bugs in comparison of :func:`~unittest.mock.call` objects where the :func:`repr` of the :func:`~unittest.mock.call` arguments were the same even when their attributes were not.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 08:05:21 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-testfixtures
|
||||
Version: 6.14.0
|
||||
Version: 6.14.1
|
||||
Release: 0
|
||||
Summary: A collection of helpers and mock objects for unit tests and doc tests
|
||||
License: MIT
|
||||
URL: https://github.com/Simplistix/testfixtures
|
||||
Source: https://files.pythonhosted.org/packages/source/t/testfixtures/testfixtures-%{version}.tar.gz
|
||||
# Test case dependencies
|
||||
Patch0: python383.patch
|
||||
BuildRequires: %{python_module Django}
|
||||
BuildRequires: %{python_module Twisted}
|
||||
BuildRequires: %{python_module pytest >= 3.6}
|
||||
@@ -58,6 +58,7 @@ their own library and give them some tests of their own!
|
||||
|
||||
%prep
|
||||
%setup -q -n testfixtures-%{version}
|
||||
%patch0 -p1
|
||||
chmod a-x docs/*.txt
|
||||
|
||||
%build
|
||||
|
||||
22
python383.patch
Normal file
22
python383.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
From 9684e9816c39377f5cc08819dee711b2255fb2d3 Mon Sep 17 00:00:00 2001
|
||||
From: Chris Withers <chris@simplistix.co.uk>
|
||||
Date: Sun, 17 May 2020 08:01:57 +0100
|
||||
Subject: [PATCH] fix for python 3.8.3
|
||||
|
||||
---
|
||||
testfixtures/utils.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/testfixtures/utils.py b/testfixtures/utils.py
|
||||
index 9584db3..00aa9da 100644
|
||||
--- a/testfixtures/utils.py
|
||||
+++ b/testfixtures/utils.py
|
||||
@@ -68,7 +68,7 @@ def patched(*args, **keywargs):
|
||||
to_add = len(getargspec(func).args[len(args):])
|
||||
added = 0
|
||||
|
||||
- exc_info = tuple()
|
||||
+ exc_info = (None, None, None)
|
||||
try:
|
||||
for patching in patched.patchings:
|
||||
arg = patching.__enter__()
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cdfc3d73cb6d3d4dc3c67af84d912e86bf117d30ae25f02fe823382ef99383d2
|
||||
size 114912
|
||||
3
testfixtures-6.14.1.tar.gz
Normal file
3
testfixtures-6.14.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:58d2b3146d93bc5ddb0cd24e0ccacb13e29bdb61e5c81235c58f7b8ee4470366
|
||||
size 114969
|
||||
Reference in New Issue
Block a user