sol / doctest

An implementation of Python's doctest for Haskell
https://hackage.haskell.org/package/doctest
MIT License
372 stars 73 forks source link

Disable test without changing rendering #328

Open hololeap opened 2 years ago

hololeap commented 2 years ago

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 commented 2 years ago

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?