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

Changeset 1847

Show
Ignore:
Timestamp:
01/13/08 15:59:49
Author:
dowski
Message:

Ok, really bugfixed the 3.0.3 tag now - merged [1845] from 3.0.x.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/cherrypy-3.0.3/cherrypy/test/test_session.py

    r1707 r1847  
    2626                      'tools.sessions.storage_type' : 'ram', 
    2727                      'tools.sessions.storage_path' : localDir, 
    28                       'tools.sessions.timeout': 0.017,    # 1.02 secs 
    29                       'tools.sessions.clean_freq': 0.017
     28                      'tools.sessions.timeout': (1.0 / 60), 
     29                      'tools.sessions.clean_freq': (1.0 / 60)
    3030                      } 
    3131         
     
    9090class SessionTest(helper.CPWebCase): 
    9191     
     92    def tearDown(self): 
     93        # Clean up sessions. 
     94        for fname in os.listdir(localDir): 
     95            if fname.startswith(sessions.FileSession.SESSION_PREFIX): 
     96                os.unlink(os.path.join(localDir, fname)) 
     97     
    9298    def test_0_Session(self): 
    9399        self.getPage('/testStr') 
     
    110116        self.assertStatus(200) 
    111117         
    112         # Wait for the session.timeout (1.02 secs
    113         time.sleep(1.25
     118        # Wait for the session.timeout (1 second
     119        time.sleep(2
    114120        self.getPage('/') 
    115121        self.assertBody('1') 

Hosted by WebFaction

Log in as guest/cpguest to create tickets