Commit 06711e45 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

tests.overriding: add overridePythonAttrs-stdenv-deprecated

parent dacf4930
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -446,14 +446,20 @@ let
        expr = package-stub-libcxx.stdenv;
        expected = pkgs.libcxxStdenv;
      };
      overridePythonAttrs-stdenv-deprecated = {
        expr =
          (package-stub.overridePythonAttrs (_: {
            stdenv = pkgs.clangStdenv;
          })).stdenv;
        expected = pkgs.clangStdenv;
      };

      overridePythonAttrs = {
        expr = (applyOverridePythonAttrs package-stub).overridePythonAttrsFlag;
        expected = 1;
      };
      overridePythonAttrs-nested = {
        expr =
          (applyOverridePythonAttrs (applyOverridePythonAttrs package-stub)).overridePythonAttrsFlag;
        expr = (applyOverridePythonAttrs (applyOverridePythonAttrs package-stub)).overridePythonAttrsFlag;
        expected = 2;
      };
      overrideAttrs-overridePythonAttrs-test-overrideAttrs = {
@@ -469,8 +475,7 @@ let
        };
      };
      overrideAttrs-overridePythonAttrs-test-overridePythonAttrs = {
        expr =
          (applyOverridePythonAttrs (overrideAttrsFooBar package-stub)) ? overridePythonAttrsFlag;
        expr = (applyOverridePythonAttrs (overrideAttrsFooBar package-stub)) ? overridePythonAttrsFlag;
        expected = true;
      };
      overrideAttrs-overridePythonAttrs-test-commutation = {