Comment #14 on issue 207 by
ccan...@gmail.com: Be python 3 compatible
http://code.google.com/p/los-cocos/issues/detail?id=207
status report at r1334
The automatic comparison of snapshots for the test/*.py scripts, between
revision r1281 (just before any py3 change) and r1334 (last commit in
branch b_py3), the first taken under py2.6.6, the last under py3.3.1 gives:
177 scripts runs with snapshots being equal at any pixel
14 are not compared because anomalies in the code taking automatic
snapshots, they are
test/test_SequenceScene.py
test/test_camera_orbit.py
test/test_draw_elbows2.py
test/test_fadeto.py
test/test_jumptiles3d.py
test/test_pyglet_vb.py
test/test_schedule_interval.py
test/test_text_movement.py
test/test_transition_zoom.py
test/test_transitions_with_pop_recipe.py
7 scripts give non matching snapshots between the two runs, like:
test/test_rect.py : draw order for childs with same z is different, this
comes from a change in CocosNode.add() This needs to be reviewed,
tentatively I think the new behavior is correct (old behavior from implicit
and unknown details of bisect module, new behavior from explicit inlined
and customized bisect code)
test/test_animation.py : the test plays a sprite animation, and snapshots
at the same time show different animation frames under 2 vs 3.
Needs more investigation, probably the snapshot machinery or a pyglet
behavior change between 2 and 3
test/test_scrolling_manager_without_tiles.py
test/test_scrolling_manager_without_tiles_autoscale.py
Strange. The visible sprite position is different.
test/test_tiles_autotest.py
test/test_tmx_autotest.py
Currently I see diferences in the debug info ( CTRL + D ), some labels are
seen and others not. This may come from the change in CocosNode.add
test/test_action_non_interval.py : Green square renders at same position,
small red squares show at different locations.
I have a weak suspect in schedule_interval : it was involved in others
cases of non-repeteability for snapshots under the same python