From 5c89ff2555c63d3c39117fedad068cb4d026dda3 Mon Sep 17 00:00:00 2001 From: Yusuf Simonson Date: Mon, 17 Aug 2020 08:16:55 -0400 Subject: [PATCH] Fix various test issues with v1.11.2 --- tests/test_debug.py | 1 + tests/test_util.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_debug.py b/tests/test_debug.py index 03d08bb2..ee71a653 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -15,6 +15,7 @@ def test_dump(): assert len(b) > 0 +@util.skip_if_below_pachyderm_version(1, 11, 2) def test_profile_cpu(): client = python_pachyderm.Client() for b in client.profile_cpu(python_pachyderm.Duration(seconds=1)): diff --git a/tests/test_util.py b/tests/test_util.py index bf03d4da..91909332 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -152,7 +152,7 @@ def check_results(extra_source_files, extra_build_files): ])) file = list(client.get_file('{}/master'.format(pipeline_name), 'file.dat')) - assert file == [b' DATA'] + assert file == [b'DATA'] # 1) create a pipeline from a directory with a main.py and requirements.txt with tempfile.TemporaryDirectory(suffix="python_pachyderm") as d: