testrunner.py: fix RuntimeError: dictionary size