fixed error in the management of a test file

the error was accidentally introduced while implementing python3 support