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

Changeset 1488

Show
Ignore:
Timestamp:
12/09/06 13:32:56
Author:
fumanchu
Message:

2.x backport of [1099] (fixed a bug in TestHarness?? (no base conf when using --profile)).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/cherrypy-2.x/cherrypy/test/test.py

    r1022 r1488  
    3838        print 
    3939         
    40         if conf is None: 
    41             conf = {'server.socket_host': '127.0.0.1', 
     40        if isinstance(conf, basestring): 
     41            conf = cherrypy.config.dict_from_config_file(conf) 
     42        baseconf = {'server.socket_host': '127.0.0.1', 
    4243                    'server.socket_port': self.port, 
    4344                    'server.thread_pool': 10, 
     
    4647                    'server.show_tracebacks': True, 
    4748                    } 
    48         elif isinstance(conf, basestring): 
    49             conf = cherrypy.config.dict_from_config_file(conf) 
    50          
    51         conf['server.protocol_version'] = self.protocol 
    52         self._run(conf) 
     49        baseconf.update(conf or {}) 
     50         
     51        baseconf['server.protocol_version'] = self.protocol 
     52        self._run(baseconf) 
    5353     
    5454    def _run(self, conf): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets