Skip to content

Commit 85ae549

Browse files
author
Anselm Kruis
committed
Issue python#112: Prepare Stackless 3.5, fix pickling tests
- Fix the CPython test case test.test_pickle.CompatPickleTests.test_exceptions https://bitbucket.org/stackless-dev/stackless/issues/112
1 parent 7bd9c8f commit 85ae549

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lib/_compat_pickle.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,13 @@
141141
"ZeroDivisionError",
142142
)
143143

144+
try:
145+
import stackless
146+
except ImportError:
147+
pass
148+
else:
149+
PYTHON2_EXCEPTIONS = PYTHON2_EXCEPTIONS + ("TaskletExit",)
150+
144151
for excname in PYTHON2_EXCEPTIONS:
145152
NAME_MAPPING[("exceptions", excname)] = ("builtins", excname)
146153

0 commit comments

Comments
 (0)