forked from pool/python-rollbar
- 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
20 lines
563 B
Diff
20 lines
563 B
Diff
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
|