summaryrefslogtreecommitdiff
path: root/tests/test_issue30.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_issue30.py')
-rw-r--r--tests/test_issue30.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_issue30.py b/tests/test_issue30.py
new file mode 100644
index 0000000..6974ff1
--- /dev/null
+++ b/tests/test_issue30.py
@@ -0,0 +1,24 @@
+import pickle
+import sys
+
+import six
+from twisted.python.failure import Failure
+
+from tblib import pickling_support
+
+
+def test_30():
+ pickling_support.install()
+
+ try:
+ raise ValueError
+ except ValueError:
+ s = pickle.dumps(sys.exc_info())
+
+ f = None
+ try:
+ six.reraise(*pickle.loads(s))
+ except ValueError:
+ f = Failure()
+
+ assert f is not None