trace module and doctest

Discussion in 'Python' started by skip@pobox.com, Nov 20, 2007.

  1. Guest

    I am trying to use the trace module with the --count flag to test for
    statement coverage in my doctests. The trace coverage listing is very
    weird, marking many statements as unexecuted which were clearly executed
    during the run (I can see their output on the screen). Is this some known
    interaction between the trace and doctest modules?

    Thanks,

    --
    Skip Montanaro - - http://www.webfast.com/~skip/
     
    , Nov 20, 2007
    #1
    1. Advertising

  2. John J. Lee Guest

    writes:

    > I am trying to use the trace module with the --count flag to test for
    > statement coverage in my doctests. The trace coverage listing is very
    > weird, marking many statements as unexecuted which were clearly executed
    > during the run (I can see their output on the screen). Is this some known
    > interaction between the trace and doctest modules?


    Yes:

    http://python-nose.googlecode.com/svn/trunk/nose/plugins/doctests.py

    http://svn.zope.org/Zope3/trunk/src/zope/testing/doctest.py?rev=28679&r1=28703&r2=28705


    John
     
    John J. Lee, Nov 22, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rukmal Fernando
    Replies:
    4
    Views:
    886
    Richard Grimes [MVP]
    Oct 27, 2003
  2. Matthias S.
    Replies:
    1
    Views:
    677
    Daniel Fisher\(lennybacon\)
    Nov 30, 2005
  3. Jiho Han
    Replies:
    0
    Views:
    547
    Jiho Han
    Aug 22, 2006
  4. Replies:
    0
    Views:
    323
  5. Gary Jefferson

    logging module and doctest

    Gary Jefferson, Jan 25, 2007, in forum: Python
    Replies:
    3
    Views:
    307
    Gary Jefferson
    Jan 25, 2007
Loading...

Share This Page