Blob Blame Raw
--- setup.py.orig	2015-11-12 16:19:17.850638394 +0100
+++ setup.py	2015-11-12 16:19:33.605809230 +0100
@@ -12,8 +12,7 @@
 
 class late_version:
     def __str__(self):
-        from unittest2 import __version__ as VERSION
-        return VERSION
+        return '1.1.0'
     def __add__(self, other):
         return str(self) + other
     def replace(self, old, new):
@@ -57,7 +56,7 @@
 # Both install and setup requires - because we read VERSION from within the
 # package, and the package also exports all the APIs.
 # six for compat helpers
-REQUIRES = ['six>=1.4', 'traceback2'],
+REQUIRES = ['six>=1.4'],
 
 params = dict(
     name=NAME,
--- unittest2/case.py	2015-06-30 08:17:28.000000000 +0200
+++ unittest2/case.py	2018-06-19 14:01:41.591254456 +0200
@@ -7,7 +7,10 @@
 import logging
 import pprint
 import re
-import traceback2 as traceback
+if sys.version_info > (3, 5):
+    import traceback
+else:
+    import traceback2 as traceback
 import types
 import unittest
 import warnings
--- unittest2/result.py	2015-03-06 06:17:01.000000000 +0100
+++ unittest2/result.py	2018-06-19 14:02:04.184171011 +0200
@@ -4,7 +4,10 @@
 import unittest
 
 from six.moves import StringIO
-import traceback2 as traceback
+if sys.version_info > (3, 5):
+    import traceback
+else:
+    import traceback2 as traceback
 
 from unittest2 import util
 from unittest2.compatibility import wraps
--- unittest2/test/test_result.py	2015-03-06 06:20:12.000000000 +0100
+++ unittest2/test/test_result.py	2018-06-19 14:01:57.136197042 +0200
@@ -1,6 +1,9 @@
 import sys
 import textwrap
-import traceback2 as traceback
+if sys.version_info > (3, 5):
+    import traceback
+else:
+    import traceback2 as traceback
 
 import six
 from six.moves import StringIO