Skip to main content

Interlude for Doctests provides an Interactive Console.

Project description

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:

  1. import interlude

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

License

interlude is copyright 2006-2009 by BlueDynamics Alliance, Klein & Partner KEG, Austria. It is under the GNU Lesser General Public License (LGPLv3). http://opensource.org/licenses/lgpl-3.0.html

written by Jens Klein <jens@bluedynamics.com>

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.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for interlude-1.0.tar.gz
Algorithm Hash digest
SHA256 ef3109357b2f499cd3356838121059cc9ba15dc091357ce41d854d60406292d6
MD5 9906721459ebd9062d4b04b7917a8cf5
BLAKE2b-256 8d5b5ac78cd067a686a4b820080c36b25be027746c0cf46518c1324ade8cc7c1

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