fixed one-hang-bug in cocos-console-test.py
Merge pull request #6559 from shujunqiao/cocos-console-hang

fixed one-hang-bug in cocos-console-test.py. [ci skip]