vitek/cython — comment on commit e56a987699c671fd427085a385838228bb90fcda
File: Cython/Compiler/ParseTreeTransforms.py line 1702
By scoder:

This type test has a slight code smell because it depends on the way the transformation works in other places. It doesn't test the cause (assignment synthesis), only the effect (an arbitrary non-empty list is returned), which may a) have been caused by a different cause than the expected one and b) no longer hint at the expected cause after a code change. I'm not sure how to do it better, though. Maybe it would help to make the test more specific by testing the returned nodes as well.