git.iko.soy/typeable/pandoc
on master help sign in
Tests: Use getExecutablePath from base...

avoiding the need to depend on the executable-path package.

commitceadf33246bcc42747b42c10c108bfc7d8663ab7 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 19 Mar 2021, 23:35 (6 years ago) parenteacead3
4 files changed+3−5
pandoc.cabal−1 test/Tests/Command.hs+1−1 test/Tests/Old.hs+1−1 test/test-pandoc.hs+1−2
pandoc.cabal−1
@@ -748,7 +748,6 @@ test-suite test-pandoc
748748 directory >= 1.2.3 && < 1.4,
749749 doctemplates >= 0.9 && < 0.10,
750750 exceptions >= 0.8 && < 0.11,
751− executable-path >= 0.0 && < 0.1,
752751 filepath >= 1.1 && < 1.5,
753752 hslua >= 1.1 && < 1.4,
754753 mtl >= 2.2 && < 2.3,
test/Tests/Command.hs+1−1
@@ -13,7 +13,7 @@ module Tests.Command (runTest, tests)
1313where
1414
1515import Data.Algorithm.Diff
16−import System.Environment.Executable (getExecutablePath)
16+import System.Environment (getExecutablePath)
1717import qualified Data.ByteString as BS
1818import qualified Data.Text as T
1919import Data.List (isSuffixOf)
test/Tests/Old.hs+1−1
@@ -14,7 +14,7 @@ module Tests.Old (tests) where
1414import Data.Algorithm.Diff
1515import System.Exit
1616import System.FilePath ((<.>), (</>))
17−import System.Environment.Executable (getExecutablePath)
17+import System.Environment (getExecutablePath)
1818import Text.Pandoc.Process (pipeProcess)
1919import Test.Tasty (TestTree, testGroup)
2020import Test.Tasty.Golden.Advanced (goldenTest)
test/test-pandoc.hs+1−2
@@ -2,12 +2,11 @@
22
33module Main where
44
5−import System.Environment (getArgs)
5+import System.Environment (getArgs, getExecutablePath)
66import qualified Control.Exception as E
77import Text.Pandoc.App (convertWithOpts, defaultOpts, options,
88 parseOptionsFromArgs)
99import Text.Pandoc.Error (handleError)
10−import System.Environment.Executable (getExecutablePath)
1110import GHC.IO.Encoding
1211import Test.Tasty
1312import qualified Tests.Command