Skip to content

Commit e3e2ebc

Browse files
committed
Clear provenance before comparison
1 parent 95ea86f commit e3e2ebc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎cabal-install/tests/UnitTests/Distribution/Client/ProjectConfig.hs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,11 @@ prop_roundtrip_legacytypes_specific config =
260260
roundtrip_printparse :: ProjectConfig -> Property
261261
roundtrip_printparse config =
262262
case runParseResult $ parseProjectConfig "unused" (toUTF8BS str) of
263-
(_, Right x) ->
263+
(_, Right result) ->
264264
counterexample ("shown:\n" ++ str) $
265-
x `ediffEq` config{projectConfigProvenance = mempty}
265+
ediffEq
266+
result{projectConfigProvenance = mempty}
267+
config{projectConfigProvenance = mempty}
266268
(_, Left err) -> counterexample ("shown:\n" ++ str ++ "\nERROR: " ++ show err) False
267269
where
268270
str :: String

0 commit comments

Comments
 (0)