Workaround for tests in Python 3.4

related bug: http://bugs.python.org/issue21750