Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2073

Show
Ignore:
Timestamp:
11/08/08 14:32:38
Author:
fumanchu
Message:

Silenced some cpmodpy errors due to not using WSGI.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/modfcgid.py

    r2072 r2073  
    105105     
    106106    def _run(self, conf): 
     107        cherrypy.server.using_wsgi = True 
    107108        cherrypy.server.using_apache = True 
    108109        cherrypy.server.httpserver = servers.FlupFCGIServer( 
  • trunk/cherrypy/test/modpy.py

    r2072 r2073  
    170170         
    171171        if self.use_wsgi: 
     172            cherrypy.server.using_wsgi = True 
    172173            conf_template = conf_modpython_gateway 
    173174        else: 
     175            cherrypy.server.using_wsgi = False 
    174176            conf_template = conf_cpmodpy 
    175177         
  • trunk/cherrypy/test/modwsgi.py

    r2072 r2073  
    117117     
    118118    def _run(self, conf): 
     119        cherrypy.server.using_wsgi = True 
    119120        cherrypy.server.using_apache = True 
    120121         
  • trunk/cherrypy/test/test.py

    r2059 r2073  
    4949        print "PID:", os.getpid() 
    5050        print 
     51         
     52        # Override these in _run as needed: 
     53        cherrypy.server.using_wsgi = True 
     54        cherrypy.server.using_apache = False 
    5155         
    5256        if isinstance(conf, basestring): 
  • trunk/cherrypy/test/test_wsgi_vhost.py

    r1670 r2073  
    3535     
    3636    def test_welcome(self): 
     37        if not cherrypy.server.using_wsgi: 
     38            print "skipped (not using WSGI)...", 
     39            return 
     40         
    3741        for year in xrange(1997, 2008): 
    3842            self.getPage("/", headers=[('Host', 'www.classof%s.example' % year)]) 
  • trunk/cherrypy/test/test_wsgiapps.py

    r1804 r2073  
    8989     
    9090    def test_04_pure_wsgi(self): 
     91        import cherrypy 
     92        if not cherrypy.server.using_wsgi: 
     93            print "skipped (not using WSGI)...", 
     94            return 
    9195        self.getPage("/hosted/app1") 
    9296        self.assertHeader("Content-Type", "text/plain") 
     
    9498 
    9599    def test_05_wrapped_cp_app(self): 
     100        import cherrypy 
     101        if not cherrypy.server.using_wsgi: 
     102            print "skipped (not using WSGI)...", 
     103            return 
    96104        self.getPage("/hosted/app2/") 
    97105        body = list("I'm a regular CherryPy page handler!") 
     
    101109 
    102110    def test_06_empty_string_app(self): 
     111        import cherrypy 
     112        if not cherrypy.server.using_wsgi: 
     113            print "skipped (not using WSGI)...", 
     114            return 
    103115        self.getPage("/hosted/app3") 
    104116        self.assertHeader("Content-Type", "text/plain") 

Hosted by WebFaction

Log in as guest/cpguest to create tickets