which makes tests of python-billiard and python-falcon fail with Python 3.4
f38
Slavek Kabrda 11 years ago
parent bdb1483402
commit 96970b9055

@ -0,0 +1,23 @@
From 913742caf54ab68b782286c3d7a3fe87ed4d0acd Mon Sep 17 00:00:00 2001
From: Robert Kuska <rkuska@redhat.com>
Date: Mon, 19 May 2014 12:51:06 +0200
Subject: [PATCH] Call super in LazySuite to access _removed_tests variable
---
nose/suite.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/nose/suite.py b/nose/suite.py
index 18098ca..f3ccd18 100644
--- a/nose/suite.py
+++ b/nose/suite.py
@@ -49,6 +49,7 @@ class LazySuite(unittest.TestSuite):
def __init__(self, tests=()):
"""Initialize the suite. tests may be an iterable or a generator
"""
+ super(LazySuite, self).__init__()
self._set_tests(tests)
def __iter__(self):
--
1.9.3

@ -17,13 +17,16 @@
Name: python-nose Name: python-nose
Version: 1.3.2 Version: 1.3.2
Release: 1%{?dist} Release: 2%{?dist}
Summary: Discovery-based unittest extension for Python Summary: Discovery-based unittest extension for Python
Group: Development/Languages Group: Development/Languages
License: LGPLv2+ and Public Domain License: LGPLv2+ and Public Domain
URL: http://somethingaboutorange.com/mrl/projects/nose/ URL: http://somethingaboutorange.com/mrl/projects/nose/
Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz
# Bug report: https://github.com/nose-devs/nose/issues/759#issuecomment-43487304
# Patch accepted upstream: https://github.com/nose-devs/nose/pull/811
Patch0: %{name}-fix-_removed_tests-attribute.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
@ -91,6 +94,7 @@ python3 unittests.
%prep %prep
%setup -q -n %{upstream_name}-%{version} %setup -q -n %{upstream_name}-%{version}
%patch0 -p1
dos2unix examples/attrib_plugin.py dos2unix examples/attrib_plugin.py
@ -180,6 +184,10 @@ rm -rf %{buildroot}
%endif # with_docs %endif # with_docs
%changelog %changelog
* Mon May 19 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.3.2-2
- Add patch for issue https://github.com/nose-devs/nose/pull/811,
which makes tests of python-billiard and python-falcon fail with Python 3.4
* Sat May 03 2014 Orion Poplawski <orion@cora.nwra.com> - 1.3.2-1 * Sat May 03 2014 Orion Poplawski <orion@cora.nwra.com> - 1.3.2-1
- Update to 1.3.2 for Python 3.4 suport - Update to 1.3.2 for Python 3.4 suport

Loading…
Cancel
Save