Originally reported by: Anselm Kruis (Bitbucket: akruis, GitHub: akruis)
Problem
Since change e5a2ecca2b08 Stackless initializes the stackless subsystem only if application code loads the module stackless. This causes undefined behaviour in the C-Python test suite, if the execution order of the tests gets randomized. Especially some pickling tests are sensitive, because the initialisation of Stackless enables the pickling of additional types.
I observed failures especially with 3.5-slp, but the problem exists in all 3.x branches.
Proposed Solution
I'll import stackless in the module test.support. Nearly every test-module imports this module very early. While I'm at it, I'll also unify the tests for stackless being available.
Activity
Issue #126: fix undefined behaviour of C-Python tests
merge 3.3-slp (Stackless #126, fix C-Python tests)
merge 3.4-slp (Stackless #126, fix C-Python tests)
Merge 3.5-slp (Stackless #126, fix C-Python tests)