summary refs log tree commit diff
path: root/lib/tests
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-09-06 08:09:53 -0400
committerShea Levy <shea@shealevy.com>2018-09-06 08:09:53 -0400
commit18337f3ece325ac0b0b26d05e2ccbe5f6398c937 (patch)
tree401b66e49052817f7042406b51a71e1597dbbf3e /lib/tests
parent0af9072e74c9e70af62e828ba4fb21391df2e601 (diff)
parent6da6accd303be776bb4e958da52046da86f9cb5c (diff)
downloadnixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.tar
nixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.tar.gz
nixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.tar.bz2
nixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.tar.lz
nixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.tar.xz
nixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.tar.zst
nixlib-18337f3ece325ac0b0b26d05e2ccbe5f6398c937.zip
Merge branch 'no-toPath'
Diffstat (limited to 'lib/tests')
-rw-r--r--lib/tests/misc.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index cf99aca58c09..d3bd7746d89c 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -112,7 +112,7 @@ runTests {
         storePathAppendix = isStorePath
           "${goodPath}/bin/python";
         nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath)));
-        asPath = isStorePath (builtins.toPath goodPath);
+        asPath = isStorePath goodPath;
         otherPath = isStorePath "/something/else";
         otherVals = {
           attrset = isStorePath {};
@@ -357,7 +357,7 @@ runTests {
       int = 42;
       bool = true;
       string = ''fno"rd'';
-      path = /. + "/foo"; # toPath returns a string
+      path = /. + "/foo";
       null_ = null;
       function = x: x;
       functionArgs = { arg ? 4, foo }: arg;