Zope Subversion Repository

  Zope

Zope: zope.testing/trunk/src/zope/testing/doctest.py


No default branch

Revision 76900 - (view) (download) (as text) - [select for diffs]
Modified Thu Jun 21 13:53:27 2007 UTC (12 months, 2 weeks ago) by nikhil_n
File length: 111005 byte(s)
Diff to previous 75911
Merge from nikhil_n-py25 branch:
    Made zope.testing work with Python 2.5, also tested in 2.4 & 2.3

Revision 75911 - (view) (download) (as text) - [select for diffs]
Modified Wed May 23 17:30:16 2007 UTC (13 months, 1 week ago) by zagy
File length: 110904 byte(s)
Diff to previous 75909
found another unicode related bug which occured when one test returned a unicode and a subsequent test a normal string with unicode chars

Revision 75909 - (view) (download) (as text) - [select for diffs]
Modified Wed May 23 15:36:35 2007 UTC (13 months, 1 week ago) by zagy
File length: 110760 byte(s)
Diff to previous 69270
Fixed a bug which prevented error reporting when there were unicode characters
in the error. By prevented I mean the testrunner to die. 


Revision 69270 - (view) (download) (as text) - [select for diffs]
Modified Thu Jul 27 13:51:25 2006 UTC (23 months, 1 week ago) by benji_york
File length: 110621 byte(s)
Diff to previous 69104
use the more common autonumbered footnotes in the tests

Revision 69104 - (view) (download) (as text) - [select for diffs]
Modified Wed Jul 12 13:57:39 2006 UTC (23 months, 3 weeks ago) by benji_york
File length: 110613 byte(s)
Diff to previous 69092
remove some dead code and add a test

Revision 69092 - (view) (download) (as text) - [select for diffs]
Modified Tue Jul 11 14:30:08 2006 UTC (23 months, 3 weeks ago) by benji_york
File length: 111069 byte(s)
Diff to previous 67661
merge in benji-add-footnote-interpretation-to-doctest branch

Revision 67661 - (view) (download) (as text) - [select for diffs]
Modified Thu Apr 27 19:48:43 2006 UTC (2 years, 2 months ago) by benji_york
File length: 101734 byte(s)
Diff to previous 41141
- fix a couple of shallow bugs when running zope.testing with Python 2.5
  (test's don't yet pass with 2.5, but continue to pass with 2.4)
- minor tweak to make a regex string raw

Revision 41141 - (view) (download) (as text) - [select for diffs]
Modified Wed Jan 4 23:23:41 2006 UTC (2 years, 6 months ago) by jim
File length: 101574 byte(s)
Diff to previous 40511
Merged from doctest-encoding branch:

r40133 | jim | 2005-11-15 12:06:53 -0500 (Tue, 15 Nov 2005) | 5 lines

Merged revision 41452 from Python svn:

Added support for pep 263 encoding specifications in doctest text
    test files.

r40131 | jim | 2005-11-15 11:06:59 -0500 (Tue, 15 Nov 2005) | 2 lines

Merged encoding api patch from Python svn.

Revision 40511 - (view) (download) (as text) - [select for diffs]
Modified Fri Dec 2 23:25:06 2005 UTC (2 years, 7 months ago) by jim
File length: 100699 byte(s)
Diff to previous 40247
In debug mode, shouldn't clean up test globs.  That is done more
carefully by tearDown.

Revision 40247 - (view) (download) (as text) - [select for diffs]
Modified Sat Nov 19 15:56:16 2005 UTC (2 years, 7 months ago) by benji_york
File length: 100680 byte(s)
Diff to previous 39023
fix un-raw regex string

Revision 39023 - (view) (download) (as text) - [select for diffs]
Modified Sun Oct 9 19:31:57 2005 UTC (2 years, 8 months ago) by jim
File length: 100679 byte(s)
Diff to previous 38181
Changed the way doctest test cases are torn down.  Rather than
clearing the test globs, restore them to their original state.
This is necessary to allow doctest test cases to be run repeatedtly.

We'll need to push this back into the python version -- with tests.
(We should consider including the python doctest tests here.

Revision 38181 - (view) (download) (as text) - [select for diffs]
Modified Tue Aug 30 22:01:11 2005 UTC (2 years, 10 months ago) by mj
File length: 100557 byte(s)
Diff to previous 30501
Massive style cleanup: Move to new raise exception style; for motivation, see:

  http://permalink.gmane.org/gmane.comp.web.zope.zope3/13884

Revision 30501 - (view) (download) (as text) - [select for diffs]
Modified Wed May 25 17:40:56 2005 UTC (3 years, 1 month ago) by tim_one
File length: 100557 byte(s)
Diff to previous 30499
Enable $Id$ keyword expansion in the Python files.

Revision 30499 - (view) (download) (as text) - [select for diffs]
Modified Wed May 25 17:08:28 2005 UTC (3 years, 1 month ago) by tim_one
File length: 100557 byte(s)
Diff to previous 30492
Whitespace normalization (ran Python's reindent.py over 'em).

Revision 30492 - (view) (download) (as text) - [select for diffs]
Modified Tue May 24 20:28:53 2005 UTC (3 years, 1 month ago) by jim
File length: 100581 byte(s)
Diff to previous 30365
Two new features at once:

- renormalizing module for using regular expressions to normalize
  expected and actual outputs to deal with variable data such as 
  addresses, times, and paths

- Initial cut at new test runner.  Have documentation and tests for
  basic features for selecting and running tests and for displaying
  errors.

(Documentation and tests for advanced features will come as I have
  time.)

Revision 30365 - (view) (download) (as text) - [select for diffs]
Modified Mon May 16 14:50:50 2005 UTC (3 years, 1 month ago) by jim
File length: 100422 byte(s)
Diff to previous 28705
Creating separate project for zope.testing.

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28705 - (view) (download) (as text) - [select for diffs]
Modified Wed Dec 29 19:57:56 2004 UTC (3 years, 6 months ago) by mgedmin
File length: 100422 byte(s)
Diff to previous 28704
Oops.  My workaround for doctests in coverage reports broke pdb.set_trace
in doctests.  Fixed now.


Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28704 - (view) (download) (as text) - [select for diffs]
Modified Wed Dec 29 19:52:59 2004 UTC (3 years, 6 months ago) by mgedmin
File length: 100414 byte(s)
Diff to previous 28679
Changed zope.testing.doctest to not break tracing that is used to produce
coverage reports (test.py --trace).  This is not enough to get coverage reports
when doctests are present, but another half of the fix needs to be applied
to trace.py in the standard Python library (at least for Python 2.3).

I will soon send a message (with subject Doctests and coverage reports)
to zope3-dev explaining the problem in more detail.


Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28679 - (view) (download) (as text) - [select for diffs]
Modified Tue Dec 21 23:37:50 2004 UTC (3 years, 6 months ago) by fdrake
File length: 100045 byte(s)
Diff to previous 28639
add __file__ to the globals available for tests loaded via DocFileSuite;
this is useful for locating supporting data files, just as it is in Python
modules
(also being added for Python 2.5, along with docs and tests)

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28639 - (view) (download) (as text) - [select for diffs]
Modified Thu Dec 16 21:48:49 2004 UTC (3 years, 6 months ago) by jim
File length: 99941 byte(s)
Diff to previous 28437
Changed the test-counting mechanism for doctests.  Now a doctest
count a test for every example that is preceeded by
prose. (Although a doctest will never count less than 1 test.)

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28437 - (view) (download) (as text) - [select for diffs]
Modified Thu Nov 11 17:14:32 2004 UTC (3 years, 7 months ago) by jim
File length: 99426 byte(s)
Diff to previous 28406
Merged Tim's fix for pdb.set_trace support and removed my hack. 
Yay!

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28406 - (view) (download) (as text) - [select for diffs]
Modified Mon Nov 8 18:59:12 2004 UTC (3 years, 7 months ago) by jim
File length: 99658 byte(s)
Diff to previous 28245
Switched to a less-elegent version of pdb.set_trace support to make
debugging work. :)

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 28245 - (view) (download) (as text) - [select for diffs]
Modified Mon Oct 25 21:48:26 2004 UTC (3 years, 8 months ago) by jim
File length: 99395 byte(s)
Diff to previous 27790
Integrated doctest from Python CVS head

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 27790 - (view) (download) (as text) - [select for diffs]
Modified Fri Oct 8 07:52:36 2004 UTC (3 years, 8 months ago) by hdima
File length: 95694 byte(s)
Diff to previous 27323
Outdated Tester class now at least work.

Maybe it's time to remove the Tester altogether?

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 27323 - (view) (download) (as text) - [select for diffs]
Modified Sat Aug 28 19:31:22 2004 UTC (3 years, 10 months ago) by jim
File length: 95644 byte(s)
Diff to previous 27312
Integrated the latest doctest rom the Python cvs.

This brought two backward-incompatible changes:

- setUp and tearDown functions are now passed a test 
  argument, which is a doctest.DocTest.  This provides access to the
  test globals.

- The names of doctest reporting options for requesting diff output
  have changed.

Thesechanges are both positive for the long run, despite the
short-term backward-incompatability. Better before X3.0 final than
later. 

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 27312 - (view) (download) (as text) - [select for diffs]
Modified Fri Aug 27 21:24:21 2004 UTC (3 years, 10 months ago) by jim
File length: 95492 byte(s)
Diff to previous 27216
Merged from ZopeX3-3.0 branch:

  r27291 | jim | 2004-08-27 10:28:24 -0400 (Fri, 27 Aug 2004) | 2 lines

Added missing setUp and tearDown calls to the debug method.

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 27216 - (view) (download) (as text) - [select for diffs]
Modified Sun Aug 22 15:13:31 2004 UTC (3 years, 10 months ago) by jim
File length: 95447 byte(s)
Diff to previous 26947
Integrated latest doctest from Python CVS head.

You can't set global test options within tests anymore.
You can set options for individual examples, or you can
supply option flags when you create a test suite.

Failure output formatting is much improved.

Can now use:

  import pdb; pdb.set_trace()

when debugging doctests.


Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 26947 - (view) (download) (as text) - [select for diffs]
Modified Fri Aug 6 22:30:48 2004 UTC (3 years, 10 months ago) by jim
File length: 90093 byte(s)
Diff to previous 26560
Integrated (a snapshot of) the new doctest from Python 2.4.
  This provides a number of new features for comparing expected and
  actual output.  It also has a much better architecture for extending
  changing it's behavior. It has it's own DocFileSuite support and
  it has support for implementing post-mortem debugging.

Updated the Zope 3 test runnew to allow post-mortem debugging of
  doctest failures.

M      src/zope/interface/tests/test_interface.py
M      src/zope/interface/tests/test_adapter.py
D      src/zope/interface/tests/docfilesuite.py

Changed to use DocFileSuite from zope.testing, since we depend on
  zope.testing anyway.

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 26560 - (view) (download) (as text) - [select for diffs]
Modified Thu Jul 15 21:38:42 2004 UTC (3 years, 11 months ago) by srichter
File length: 51854 byte(s)
Diff to previous 26559
Removed "Revision information:" in module doc strings.

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 26559 - (view) (download) (as text) - [select for diffs]
Modified Thu Jul 15 21:22:32 2004 UTC (3 years, 11 months ago) by srichter
File length: 51848 byte(s)
Diff to previous 26451
Converted as many classes as possible to new style classes.

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 26451 - (view) (download) (as text) - [select for diffs]
Modified Tue Jul 13 16:15:54 2004 UTC (3 years, 11 months ago) by srichter
File length: 51816 byte(s)
Diff to previous 13888
Converted XXX to TODO.

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 13888 - (view) (download) (as text) - [select for diffs]
Modified Tue May 11 18:24:59 2004 UTC (4 years, 1 month ago) by root
File length: 51814 byte(s)
Diff to previous 13090
Set mime-type or svn-eol property from cvs expansion data

Filename: Zope3/trunk/src/zope/testing/doctest.py
Revision 13090 - (view) (download) (as text) - [select for diffs]
Added Mon Mar 15 20:41:36 2004 UTC (4 years, 3 months ago) by jim
File length: 51814 byte(s)
Added basic post-mortem-debugging support for doctests. Only
unexpected exceptions are handled. We still need to think about how to
handle debugging mismatched output.

Copied Jeremy's patched doctest module.  This copy will give us a
chance to play with doctest enhancements prior to Python 2.4.

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

  Diffs between and
  Type of Diff should be a

Sort log by:

webmaster@zope.org

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help