Serhiy Storchaka added the comment: Actually test_inspect is affected by -O. Here is updated patch. ---------- Added file: http://bugs.python.org/file32651/issue19535_2.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19535> _______________________________________