~tchaypo/testscenarios/unittest2

« back to all changes in this revision

Viewing changes to test_all.py

  • Committer: Robert Collins
  • Date: 2009-03-10 13:05:11 UTC
  • mfrom: (11.1.4 mbp-doc)
  • Revision ID: robertc@robertcollins.net-20090310130511-s2romen8m5sroruq
Merge Martin Pools improvements to README, making it doctestable, more ReST compliant and a bit easier to read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
20
#
21
21
 
 
22
import doctest
22
23
import unittest
23
24
import sys
24
25
import os
77
78
 
78
79
def test_suite():
79
80
    import testscenarios
80
 
    return testscenarios.test_suite()
 
81
    result = testscenarios.test_suite()
 
82
    doctest.set_unittest_reportflags(doctest.REPORT_ONLY_FIRST_FAILURE)
 
83
    result.addTest(doctest.DocFileSuite("README"))
 
84
    return result
81
85
 
82
86
 
83
87
def main(argv):