diff --git a/pkgs/pkgs-lib/tests/formats.nix b/pkgs/pkgs-lib/tests/formats.nix
index 12fbd2ddd4cc..ccbda6b7086e 100644
--- a/pkgs/pkgs-lib/tests/formats.nix
+++ b/pkgs/pkgs-lib/tests/formats.nix
@@ -1034,7 +1034,6 @@ runBuildTests {
};
}
];
- path = ./testfile;
};
expected = ''
@@ -1074,8 +1073,6 @@ runBuildTests {
''\t''\t''\t
''\t''\t
''\t
- ''\tpath
- ''\t${toString ./testfile}
''\tstr
''\tfoo
''\ttrue