Skip to content

Fix exception pickling #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 10, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use cPickle for Python 2.
  • Loading branch information
filmor authored Nov 8, 2016
commit 47c0e1439b46f70d0f073d42b6bebe0bf95a2de3
5 changes: 4 additions & 1 deletion src/tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,10 @@ def testExceptionIsInstanceOfSystemObject(self):

def testPicklingExceptions(self):
from System import Exception
import pickle
try
import cPickle as pickle
except ImportError:
import pickle

exc = Exception("test")
dumped = pickle.dumps(exc)
Expand Down