[2.7] bpo-31455: avoid calling "PyObject_GetAttrString()" with a live exception set by scoder · Pull Request #3992 · python/cpython (original) (raw)

Updated and rebased on latest 2.7 branch.
Took me a while to figure out what was wrong. In fact, pyET behaves entirely differently here and only looks up the methods at need, thus actually requiring them to be always available. Since that renders the test useless, I've disabled it for pyET and only left it in for cET.