core/test/console.py: fixed