fix weird test case for python3

Signed-off-by: Hiroshi Miura <miurahr@linux.com>