14
0
Files
python-rollbar/python-rollbar-no-unittest2.patch
Tomáš Chvátal cdbaade66e 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
2020-06-03 09:15:12 +00:00

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