mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
No need for these anymore
This commit is contained in:
parent
666585bf50
commit
8860a0942b
@ -6,12 +6,6 @@ import Test.Hspec.Expectations.Pretty
|
||||
import System.Environment
|
||||
import Control.Exception
|
||||
|
||||
setup :: String -> String -> IO ()
|
||||
setup = setEnv
|
||||
|
||||
teardown :: String -> () -> IO ()
|
||||
teardown key _ = unsetEnv key
|
||||
|
||||
withEnvironment :: String -> String -> (() -> IO ()) -> IO ()
|
||||
withEnvironment key value = bracket (setEnv key value) (const (unsetEnv key))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user