diff options
author | Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | 2020-04-16 13:39:58 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2020-04-17 17:56:24 +0200 |
commit | b138b85f489a138753db53221b3ed6394603fc3c (patch) | |
tree | 77f9f35a0526f0f871641a2aa231aed2006fb134 | |
parent | 2a836ae36638936ae8a33136551f5ad358362253 (diff) | |
download | cherrypy-git-b138b85f489a138753db53221b3ed6394603fc3c.tar.gz |
Serve test module itself in `serve_file_utf8_filename`
-rw-r--r-- | cherrypy/test/test_static.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cherrypy/test/test_static.py b/cherrypy/test/test_static.py index f0757b15..28fbce05 100644 --- a/cherrypy/test/test_static.py +++ b/cherrypy/test/test_static.py @@ -99,9 +99,8 @@ class StaticTest(helper.CPWebCase): @cherrypy.expose def serve_file_utf8_filename(self): - file_path = os.path.join(curdir, 'style.css') return static.serve_file( - file_path, + __file__, disposition='attachment', name='has_utf-8_character_☃.html') |