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

Changeset 1979

Show
Ignore:
Timestamp:
06/08/08 16:39:00
Author:
fumanchu
Message:

Backport of [1514], [1515]. See #821, #441.

Files:

Legend:

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

    r1210 r1979  
    44import os 
    55curdir = os.path.join(os.getcwd(), os.path.dirname(__file__)) 
     6has_space_filepath = os.path.join(curdir, 'static', 'has space.html') 
    67import threading 
    78 
     
    1112 
    1213def setup_server(): 
     14    if not os.path.exists(has_space_filepath): 
     15        file(has_space_filepath, 'wb').write('Hello, world\r\n') 
     16     
    1317    class Root: 
    1418        pass 
     
    5559        }, 
    5660    }) 
     61 
     62 
     63def teardown_server(): 
     64    if os.path.exists(has_space_filepath): 
     65        try: 
     66            os.unlink(has_space_filepath) 
     67        except: 
     68            pass 
    5769 
    5870import helper 
  • branches/cherrypy-2.x/setup.py

    r1859 r1979  
    5252    ('cherrypy/test', ['cherrypy/test/style.css',]), 
    5353    ('cherrypy/test/static', ['cherrypy/test/static/index.html', 
    54                               'cherrypy/test/static/has space.html', 
    5554                              'cherrypy/test/static/dirback.jpg',]), 
    5655] 

Hosted by WebFaction

Log in as guest/cpguest to create tickets