Fix broken test

unittest.TestCase.assertAlmostEqual should only be used to compare
numbers. For some reason the test passes anyway on python2.7 and
python3.
Merge branch 'python3-compatibility' into continuous-integration