diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-14 21:06:14 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-14 21:06:14 +0100 |
commit | 6cb54c3defcc7f097e40c255c1dd370fe94b9916 (patch) | |
tree | efee0e963969d8724a4c2a65ba1748b80b1987f8 /test/Tests/Readers/Docx.hs | |
parent | ebbaf2e965ad4f1ba6e5130a73840a531ececcaf (diff) | |
download | pandoc-6cb54c3defcc7f097e40c255c1dd370fe94b9916.tar.gz |
Got rid of distracting warning in test output.
Diffstat (limited to 'test/Tests/Readers/Docx.hs')
-rw-r--r-- | test/Tests/Readers/Docx.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Tests/Readers/Docx.hs b/test/Tests/Readers/Docx.hs index 215fced78..028a4ff2f 100644 --- a/test/Tests/Readers/Docx.hs +++ b/test/Tests/Readers/Docx.hs @@ -60,7 +60,7 @@ testCompare = testCompareWithOpts defopts testForWarningsWithOptsIO :: ReaderOptions -> String -> FilePath -> [String] -> IO TestTree testForWarningsWithOptsIO opts name docxFile expected = do df <- B.readFile docxFile - logs <- runIOorExplode (readDocx opts df >> P.getLog) + logs <- runIOorExplode $ setVerbosity ERROR >> readDocx opts df >> P.getLog let warns = [m | DocxParserWarning m <- logs] return $ test id name (unlines warns, unlines expected) @@ -94,7 +94,7 @@ compareMediaPathIO mediaPath mediaBag docxPath = do compareMediaBagIO :: FilePath -> IO Bool compareMediaBagIO docxFile = do df <- B.readFile docxFile - mb <- runIOorExplode (readDocx defopts df >> P.getMediaBag) + mb <- runIOorExplode $ readDocx defopts df >> P.getMediaBag bools <- mapM (\(fp, _, _) -> compareMediaPathIO fp mb docxFile) (mediaDirectory mb) |