From 4103a66d3ff1690fbe3c6e3c8e03d7ea29ecf1be Mon Sep 17 00:00:00 2001 From: SSE4 Date: Mon, 23 Nov 2020 16:04:12 +0700 Subject: [PATCH] debug Signed-off-by: SSE4 --- conans/test/integration/toolchains/test_meson.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/conans/test/integration/toolchains/test_meson.py b/conans/test/integration/toolchains/test_meson.py index 5a9b027a132..623401b8a6c 100644 --- a/conans/test/integration/toolchains/test_meson.py +++ b/conans/test/integration/toolchains/test_meson.py @@ -25,9 +25,16 @@ def get_meson_version(): @pytest.mark.toolchain @pytest.mark.tool_meson -@unittest.skipUnless(which("meson") and get_meson_version() >= Version("0.56.0"), - "requires meson >= 0.56.0") +@unittest.skipUnless(get_meson_version() >= Version("0.56.0"), "requires meson >= 0.56.0") class MesonToolchainTest(unittest.TestCase): + def setUp(self): + if get_meson_version() < Version("0.56.0"): + raise unittest.SkipTest("requires meson >= 0.56.0") + + self.t = TestClient() + + self.assertEqual(get_meson_version(), "0.56.0") + _conanfile_py = textwrap.dedent(""" from conans import ConanFile, MesonToolchain, tools