cpython: 7e0102ec95d4 (original) (raw)

Mercurial > cpython

changeset 71238:7e0102ec95d4

Fix #11512. Add an initial test suite for the cgitb, providing 75% coverage. Patch by Robbie Clemons (robquad), produced at the PyCon 2011 sprints. [#11512]

Brian Curtin brian@python.org
date Tue, 05 Jul 2011 19:14:16 -0500
parents 0e5485634817
children f362f0053eab
files Lib/test/test_cgitb.py Misc/ACKS Misc/NEWS
diffstat 3 files changed, 58 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_cgitb.py 55 Misc/ACKS 1 Misc/NEWS 2

line wrap: on

line diff

new file mode 100644 --- /dev/null +++ b/Lib/test/test_cgitb.py @@ -0,0 +1,55 @@ +from test.support import run_unittest +import unittest +import sys +import subprocess +import cgitb + +class TestCgitb(unittest.TestCase):

+

+ + +def test_main():

+if name == "main":

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -175,6 +175,7 @@ David Cinege Mike Clarkson Andrew Clegg Brad Clements +Robbie Clemons Steve Clift Nick Coghlan Josh Cogliati

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -994,6 +994,8 @@ Extension Modules Tests ----- +- Issue #11512: Add a test suite for the cgitb module. Patch by Robbie Clemons. +