tests/pdtest: Small fix to make it work with Python 3.2.