doctest icon indicating copy to clipboard operation
doctest copied to clipboard

Disable test without changing rendering

Open hololeap opened this issue 3 years ago • 1 comments

Is there a way to do this currently? I sometimes run into tests for doctest that are incompatible with my system. I would like to have a way to disable them without changing how the docs are rendered.

hololeap avatar Feb 13 '22 06:02 hololeap

Here is an example:

-- >>> input auto "https://raw.githubusercontent.com/dhall-lang/dhall-haskell/18e4e9a18dc53271146df3ccf5b4177c3552236b/examples/True" :: IO Bool
-- True

https://github.com/dhall-lang/dhall-haskell/blob/ecef9b7daf5bb16d2678a7c973406fbc78731d19/dhall/src/Dhall/Tutorial.hs#L378-L379

My system (gentoo) runs tests in a sandbox and doesn't allow for network calls. I want to patch this so that it disables the test, but I want to keep the way it renders in Haddock the same. How can I do this?

hololeap avatar Feb 13 '22 06:02 hololeap