aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-19 23:35:47 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-19 23:35:47 -0700
commitceadf33246bcc42747b42c10c108bfc7d8663ab7 (patch)
tree4a74940957474f8bf0ed50c3d7e57bf9e6d00d7c /test
parenteacead3eb316dd8e2d75737589dc017de36326fb (diff)
downloadpandoc-ceadf33246bcc42747b42c10c108bfc7d8663ab7.tar.gz
Tests: Use getExecutablePath from base...
avoiding the need to depend on the executable-path package.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Command.hs2
-rw-r--r--test/Tests/Old.hs2
-rw-r--r--test/test-pandoc.hs3
3 files changed, 3 insertions, 4 deletions
diff --git a/test/Tests/Command.hs b/test/Tests/Command.hs
index e8863b545..3ec6d7230 100644
--- a/test/Tests/Command.hs
+++ b/test/Tests/Command.hs
@@ -13,7 +13,7 @@ module Tests.Command (runTest, tests)
where
import Data.Algorithm.Diff
-import System.Environment.Executable (getExecutablePath)
+import System.Environment (getExecutablePath)
import qualified Data.ByteString as BS
import qualified Data.Text as T
import Data.List (isSuffixOf)
diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs
index c7b164f3c..ad9f249c4 100644
--- a/test/Tests/Old.hs
+++ b/test/Tests/Old.hs
@@ -14,7 +14,7 @@ module Tests.Old (tests) where
import Data.Algorithm.Diff
import System.Exit
import System.FilePath ((<.>), (</>))
-import System.Environment.Executable (getExecutablePath)
+import System.Environment (getExecutablePath)
import Text.Pandoc.Process (pipeProcess)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.Golden.Advanced (goldenTest)
diff --git a/test/test-pandoc.hs b/test/test-pandoc.hs
index 4d9da525b..abb2f105f 100644
--- a/test/test-pandoc.hs
+++ b/test/test-pandoc.hs
@@ -2,12 +2,11 @@
module Main where
-import System.Environment (getArgs)
+import System.Environment (getArgs, getExecutablePath)
import qualified Control.Exception as E
import Text.Pandoc.App (convertWithOpts, defaultOpts, options,
parseOptionsFromArgs)
import Text.Pandoc.Error (handleError)
-import System.Environment.Executable (getExecutablePath)
import GHC.IO.Encoding
import Test.Tasty
import qualified Tests.Command