Serhiy Storchaka added the comment: Why do you check hasattr(sys, 'getrefcount') in test_io.py, but hasattr(sys, 'getcounts') in all other tests? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19527> _______________________________________