Skip to main content

Interlude for Doctests provides an Interactive Console.

Project description

Interlude - Interactive Doctests

Provides an interactive shell aka console inside your doctest case.

The console looks exact like in a doctest-case and you can copy and paste code from the shell into your doctest. It feels as you are in the test case itself. Its not pdb, it’s a python shell.

In your doctest you can invoke the shell at any point by calling:

>>> interact(locals())

To make your testrunner interlude aware following is needed:

  • import interlude

  • suite = DocFileSuite( …, globs=dict(interact=interlude.interact), …)

License

interlude is copyright 2006-2013 by BlueDynamics Alliance, Klein & Partner KG, Austria. It is under the GNU Lesser General Public License (LGPLv3).

Changes

1.2

  • make the ipython support work with newer ipython versions. [sunew]

1.1.1

  • fix broken release, include *.rst with MANIFEST.in

1.1

  • IPython support - alanjds, 2010-12-19

1.0

  • initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

interlude-1.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file interlude-1.2.tar.gz.

File metadata

  • Download URL: interlude-1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for interlude-1.2.tar.gz
Algorithm Hash digest
SHA256 179661692e926627f29ddea81ef807106fa29028509fa4e920f3dc75205c1b1f
MD5 3d52c45ee9aa5ab4db82c23171ca830e
BLAKE2b-256 9f85ec969978ca9c738d1c846429c2afbad4ad760d3601acb88d5423fbd33a31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page