diff --git a/pyperf/tests/test_runner.py b/pyperf/tests/test_runner.py index c8f706d..df0b371 100644 --- a/pyperf/tests/test_runner.py +++ b/pyperf/tests/test_runner.py @@ -26,9 +26,6 @@ def check_args(loops, a, b): class TestRunner(unittest.TestCase): - - maxDiff = None - def create_runner(self, args, **kwargs): # hack to be able to create multiple instances per process pyperf.Runner._created.clear() @@ -176,8 +173,8 @@ def test_pipe_with_timeout(self): with mock.patch('pyperf._utils.select.select', return_value=(True, False, False)): bench_json = rpipe.read_text(timeout=0.1) - self.assertEqual(bench_json, - tests.benchmark_as_json(result.bench)) + self.assertEqual(bench_json.rstrip(), + tests.benchmark_as_json(result.bench).rstrip()) def test_json_exists(self): with tempfile.NamedTemporaryFile('wb+') as tmp: