forked from pool/python-rollbar
Accepting request 811057 from home:pgajdos:python
- use %pytest macro - remove dependency on unittest2 for python3 - added patches https://github.com/rollbar/pyrollbar/pull/340 + python-rollbar-no-unittest2.patch OBS-URL: https://build.opensuse.org/request/show/811057 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rollbar?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
7419a045de
commit
cdbaade66e
19
python-rollbar-no-unittest2.patch
Normal file
19
python-rollbar-no-unittest2.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
Index: pyrollbar-0.15.0/rollbar/test/__init__.py
|
||||
===================================================================
|
||||
--- pyrollbar-0.15.0.orig/rollbar/test/__init__.py 2020-04-04 02:08:37.000000000 +0200
|
||||
+++ pyrollbar-0.15.0/rollbar/test/__init__.py 2020-06-03 10:51:15.137644743 +0200
|
||||
@@ -1,9 +1,12 @@
|
||||
-import unittest2
|
||||
+try:
|
||||
+ import unittest2 as unittest
|
||||
+except ImportError:
|
||||
+ import unittest
|
||||
|
||||
|
||||
SNOWMAN = b'\xe2\x98\x83'
|
||||
SNOWMAN_UNICODE = SNOWMAN.decode('utf8')
|
||||
|
||||
|
||||
-class BaseTest(unittest2.TestCase):
|
||||
+class BaseTest(unittest.TestCase):
|
||||
pass
|
Reference in New Issue
Block a user