[issue1394] simple patch, improving unreachable bytecode removing
Benjamin Peterson
report at bugs.python.org
Mon Feb 25 22:32:10 CET 2008
Benjamin Peterson added the comment:
>Yes, help with unit tests would be appreciated. Especially since it is
>not supposed to fix anything, so I'm not sure what unit tests should be
>like...
Unit tests are just for bugfixes. They let us make sure Python is doing
what we want it to do in a given case. Your unit test will probably have
functions where you optimization should take effect and assert that it
does. For starters, take a look at Lib/test/test_peephole.py
----------
nosy: +benjamin.peterson
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1394>
__________________________________
More information about the Python-bugs-list
mailing list