tests: fix unit tests on python 3.6 / 3.7 (#630)

1 file changed