# HG changeset patch # User Jeff Hammel # Date 1330575919 28800 # Node ID 486a4640fc319ac4f18cd0a86ee15d0e10324f27 # Parent 4990fe59974afe3f1c296c38f9b28df064c9b843 fix test harness diff -r 4990fe59974a -r 486a4640fc31 tests/test.py --- a/tests/test.py Wed Feb 29 20:21:02 2012 -0800 +++ b/tests/test.py Wed Feb 29 20:25:19 2012 -0800 @@ -1,7 +1,7 @@ #!/usr/bin/env python """ -doctest runner +doctest runner for simpypi tests """ import doctest @@ -10,15 +10,6 @@ import sys import tempfile from optparse import OptionParser -from paste.fixture import TestApp -import simpypi.factory import factory - -class SimpypiTestApp(TestApp): - """WSGI app wrapper for testing simpypi""" - - def __init__(self, directory): - app = factory(directory=directory) - TestApp.__init__(self, app) def run_tests(raise_on_error=False, report_first=False): @@ -43,9 +34,6 @@ tmpdir = tempfile.mkdtemp() doctest_args['extraglobs']['directory'] = tmpdir - # make a test WSGI app - app = simpypi. - try: results[test] = doctest.testfile(test, **doctest_args) except doctest.DocTestFailure, failure: