From 47da3c88c788980b15c74eaf7360a6c5b7a2b9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 25 Dec 2020 18:24:10 +0100 Subject: [PATCH] tests: fix flake feature check --- tests/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test.py b/tests/test.py index d97592b..c018ee1 100644 --- a/tests/test.py +++ b/tests/test.py @@ -24,10 +24,10 @@ def support_flakes() -> bool: "--json", "--eval", "--expr", - '(builtins.compareVersions "2.4" builtins.nixVersion) == 1', + "builtins ? getFlake", ] proc = subprocess.run(cmd, text=True, capture_output=True, check=True) - return proc.stdout != "true" + return proc.stdout == "true" class IntegrationTest(unittest.TestCase):