~pythoneers/ubuntu/lucid/python2.6/ltsppa

« back to all changes in this revision

Viewing changes to Lib/test/test_wsgiref.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100311133019-sonignhpjsu6ld0x
Tags: 2.6.5~rc2-0ubuntu1
Python 2.6.5 release candidate 2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
from wsgiref.simple_server import make_server
10
10
from StringIO import StringIO
11
11
from SocketServer import BaseServer
12
 
import re, sys
 
12
import os
 
13
import re
 
14
import sys
13
15
 
14
16
from test import test_support
15
17
 
386
388
class ErrorHandler(BaseCGIHandler):
387
389
    """Simple handler subclass for testing BaseHandler"""
388
390
 
 
391
    # BaseHandler records the OS environment at import time, but envvars
 
392
    # might have been changed later by other tests, which trips up
 
393
    # HandlerTests.testEnviron().
 
394
    os_environ = dict(os.environ.items())
 
395
 
389
396
    def __init__(self,**kw):
390
397
        setup_testing_defaults(kw)
391
398
        BaseCGIHandler.__init__(