Skip to content

Commit

Permalink
Issue python#112: Prepare Stackless 3.5, fix pickling tests
Browse files Browse the repository at this point in the history
-  Fix the CPython test case test.test_pickle.CompatPickleTests.test_exceptions

https://bitbucket.org/stackless-dev/stackless/issues/112
  • Loading branch information
Anselm Kruis committed Dec 27, 2016
1 parent 7bd9c8f commit 85ae549
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lib/_compat_pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@
"ZeroDivisionError",
)

try:
import stackless
except ImportError:
pass
else:
PYTHON2_EXCEPTIONS = PYTHON2_EXCEPTIONS + ("TaskletExit",)

for excname in PYTHON2_EXCEPTIONS:
NAME_MAPPING[("exceptions", excname)] = ("builtins", excname)

Expand Down

0 comments on commit 85ae549

Please sign in to comment.