fix broken test in cpython 3.x