Support Python 3 in the benchmark suite

This commit is contained in:
Sergej Jaskiewicz
2020-02-27 02:55:44 +03:00
parent a9fc2658a7
commit cce9e81f0b
9 changed files with 147 additions and 81 deletions

View File

@@ -24,7 +24,10 @@ common unit testing patterns that is used in this project.
import logging
import sys
from StringIO import StringIO
try:
from StringIO import StringIO # for Python 2
except ImportError:
from io import StringIO # for Python 3
from contextlib import contextmanager