From a75fc3c6ddd79f4dffc4c2d1f72b300719adf703 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Sat, 6 Apr 2019 21:37:11 +0200 Subject: [PATCH] Skip the 'release_jobs' test in Python 2.6 --- lib/spack/spack/test/cmd/release_jobs.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/spack/spack/test/cmd/release_jobs.py b/lib/spack/spack/test/cmd/release_jobs.py index 7768b7d8c1e..512650723c3 100644 --- a/lib/spack/spack/test/cmd/release_jobs.py +++ b/lib/spack/spack/test/cmd/release_jobs.py @@ -3,7 +3,10 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import pytest + import json +import sys from jsonschema import validate @@ -36,6 +39,11 @@ def test_specs_deps(tmpdir, config): validate(deps_object, specs_deps_schema) +@pytest.mark.skipif( + sys.version_info[:2] < (2, 7), + reason="For some reason in Python2.6 we get a utf-32 string " + "that can't be parsed" +) def test_specs_staging(config): """Make sure we achieve the best possible staging for the following spec DAG::