tests: Remove debugging code which triggers a bug in nosetest 1.3.0

Remove useless use sys.stdout which is now a fake object in nosetest
1.3.0 which is lacking some methods like fileno().