def ensure_unicode_filesystem():
    """
    TODO: replace with simply pytest fixtures once webtest.TestCase
    no longer implies unittest.
    """
    tmpdir = py.path.local(tempfile.mkdtemp())
    try:
        _check_unicode_filesystem(tmpdir)
    finally:
        tmpdir.remove()

    TODO: replace with simply pytest fixtures once webtest.TestCase
    no longer implies unittest.
    
cherrypy/test/test_static.py