From 01b5bf6eb6ef8ab440e03a11d582240edea6156d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 15 Nov 2021 14:35:49 +0100 Subject: [PATCH] test: remove nix flake check --- tests/test.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/test.py b/tests/test.py index 4a78f79..9fb7832 100644 --- a/tests/test.py +++ b/tests/test.py @@ -18,18 +18,6 @@ def run(cmd: List[str], **kwargs) -> subprocess.CompletedProcess: return subprocess.run(cmd, **kwargs) -def support_flakes() -> bool: - cmd = [ - "nix-instantiate", - "--json", - "--eval", - "--expr", - "builtins ? getFlake", - ] - proc = subprocess.run(cmd, text=True, capture_output=True, check=True) - return proc.stdout == "true" - - class TestBaseNamespace: """Nested so test discovery doesn't run the base class tests directly.""" @@ -107,7 +95,6 @@ class NixShellTest(TestBaseNamespace.TestBase): cached_message = "using cached derivation" -@unittest.skipUnless(support_flakes(), "requires flakes") class FlakeTest(TestBaseNamespace.TestBase): direnvrc_command = "use flake" renewed_message = "renewed cache"