tests: Prevent unittest --buffer
from crashing
#620
Merged
unittest --buffer
from crashing
#620