[python-nose] Add patch for issue https://github.com/nose-devs/nose/pull/811,

Bohuslav Kabrda bkabrda at fedoraproject.org
Wed May 21 07:49:38 UTC 2014


commit 96970b90556b749843b90d3112cd71a0d8717202
Author: Slavek Kabrda <bkabrda at redhat.com>
Date:   Wed May 21 09:49:15 2014 +0200

    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

 python-nose-fix-_removed_tests-attribute.patch |   23 +++++++++++++++++++++++
 python-nose.spec                               |   10 +++++++++-
 2 files changed, 32 insertions(+), 1 deletions(-)
---
diff --git a/python-nose-fix-_removed_tests-attribute.patch b/python-nose-fix-_removed_tests-attribute.patch
new file mode 100644
index 0000000..49ce06d
--- /dev/null
+++ b/python-nose-fix-_removed_tests-attribute.patch
@@ -0,0 +1,23 @@
+From 913742caf54ab68b782286c3d7a3fe87ed4d0acd Mon Sep 17 00:00:00 2001
+From: Robert Kuska <rkuska at 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
diff --git a/python-nose.spec b/python-nose.spec
index 2d91160..a2f92fc 100644
--- a/python-nose.spec
+++ b/python-nose.spec
@@ -17,13 +17,16 @@
 
 Name:           python-nose
 Version:        1.3.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Discovery-based unittest extension for Python
 
 Group:          Development/Languages
 License:        LGPLv2+ and Public Domain
 URL:            http://somethingaboutorange.com/mrl/projects/nose/
 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)
 
 BuildArch:      noarch
@@ -91,6 +94,7 @@ python3 unittests.
 
 %prep
 %setup -q -n %{upstream_name}-%{version}
+%patch0 -p1
 
 dos2unix examples/attrib_plugin.py
 
@@ -180,6 +184,10 @@ rm -rf %{buildroot}
 %endif # with_docs
 
 %changelog
+* Mon May 19 2014 Bohuslav Kabrda <bkabrda at 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 at cora.nwra.com> - 1.3.2-1
 - Update to 1.3.2 for Python 3.4 suport
 


More information about the scm-commits mailing list