Hello community,

here is the log from the commit of package python-discover for openSUSE:Factory 
checked in at 2014-02-26 06:55:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-discover (Old)
 and      /work/SRC/openSUSE:Factory/.python-discover.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-discover"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-discover/python-discover.changes  
2013-09-26 16:03:05.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-discover.new/python-discover.changes     
2014-02-26 06:55:22.000000000 +0100
@@ -1,0 +2,6 @@
+Fri Feb 14 23:17:23 UTC 2014 - [email protected]
+
+- added patches:
+  * bug-79-fix.patch
+
+-------------------------------------------------------------------

New:
----
  bug-79-fix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-discover.spec ++++++
--- /var/tmp/diff_new_pack.ToGlHE/_old  2014-02-26 06:55:23.000000000 +0100
+++ /var/tmp/diff_new_pack.ToGlHE/_new  2014-02-26 06:55:23.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-discover
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,16 +13,19 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
 Name:           python-discover
 Version:        0.4.0
 Release:        0
-License:        BSD-3-Clause
 Summary:        Test discovery for unittest. Backported from Python 2.7 for 
Python 24+
-Url:            http://pypi.python.org/pypi/discover/
+License:        BSD-3-Clause
 Group:          Development/Languages/Python
+Url:            http://pypi.python.org/pypi/discover/
 Source:         
http://pypi.python.org/packages/source/d/discover/discover-%{version}.tar.gz
+# https://code.google.com/p/unittest-ext/issues/detail?id=79
+Patch0:         bug-79-fix.patch
 BuildRequires:  python-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version} && 0%{?suse_version} <= 1110
@@ -38,6 +41,7 @@
 
 %prep
 %setup -q -n discover-%{version}
+%patch0 -p1
 
 %build
 python setup.py build

++++++ bug-79-fix.patch ++++++
diff -r b2efb7df637b discover.py
--- a/discover.py       Thu Mar 24 00:31:02 2011 -0400
+++ b/discover.py       Thu Nov 28 12:02:19 2013 +0000
@@ -82,7 +82,11 @@
     """
     testMethodPrefix = 'test'
     sortTestMethodsUsing = cmp
-    suiteClass = unittest.TestSuite
+    try:
+        import unittest2
+        suiteClass = unittest2.TestSuite
+    except ImportError:
+        suiteClass = unittest.TestSuite
     _top_level_dir = None
 
     def loadTestsFromTestCase(self, testCaseClass):
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to