Hello community,
here is the log from the commit of package python-traittypes for
openSUSE:Factory checked in at 2020-07-16 14:00:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-traittypes (Old)
and /work/SRC/openSUSE:Factory/.python-traittypes.new.3592 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-traittypes"
Thu Jul 16 14:00:15 2020 rev:6 rq:821282 version:0.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-traittypes/python-traittypes.changes
2020-07-05 01:21:53.345678620 +0200
+++
/work/SRC/openSUSE:Factory/.python-traittypes.new.3592/python-traittypes.changes
2020-07-16 14:00:20.409399395 +0200
@@ -1,0 +2,7 @@
+Thu Jul 16 09:00:34 UTC 2020 - [email protected]
+
+- pytest instead of unittest, upstream prefered solution
+- modified patches
+ % python-traittypes-remove-nose.patch (amended)
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-traittypes-remove-nose.patch ++++++
--- /var/tmp/diff_new_pack.bY9qQS/_old 2020-07-16 14:00:20.913399958 +0200
+++ /var/tmp/diff_new_pack.bY9qQS/_new 2020-07-16 14:00:20.917399962 +0200
@@ -1,21 +1,18 @@
Index: traittypes-0.2.1/traittypes/tests/test_import_errors.py
===================================================================
--- traittypes-0.2.1.orig/traittypes/tests/test_import_errors.py
2018-04-27 16:58:52.000000000 +0200
-+++ traittypes-0.2.1/traittypes/tests/test_import_errors.py 2020-07-03
11:18:24.336543158 +0200
-@@ -1,10 +1,11 @@
++++ traittypes-0.2.1/traittypes/tests/test_import_errors.py 2020-07-16
10:15:52.059154494 +0200
+@@ -1,10 +1,10 @@
-import nose.tools as nt
-+from unittest import TestCase
++import pytest
from ..traittypes import _DelayedImportError
[email protected](RuntimeError)
--def test_delayed_access_raises():
-- dummy = _DelayedImportError('mypackage')
+ def test_delayed_access_raises():
+ dummy = _DelayedImportError('mypackage')
- dummy.asarray([1, 2, 3])
-+class TestError(TestCase):
-+ def test_delayed_access_raises(self):
-+ dummy = _DelayedImportError('mypackage')
-+ with self.assertRaises(RuntimeError):
-+ dummy.asarray([1, 2, 3])
++ with pytest.raises(RuntimeError):
++ dummy.asarray([1, 2, 3])