summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.rst6
-rw-r--r--cherrypy/test/test_static.py6
2 files changed, 11 insertions, 1 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index 23e5e830..8dc1af56 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -14,6 +14,12 @@ v18.0.0
* Drop support for Python 3.4.
+v17.4.1
+-------
+
+* :issue:`1738` via :pr:`1755`: Restore support for 'bytes'
+ in response headers (backport from v18.0.1).
+
v17.4.0
-------
diff --git a/cherrypy/test/test_static.py b/cherrypy/test/test_static.py
index 76cffbd4..cdd821ae 100644
--- a/cherrypy/test/test_static.py
+++ b/cherrypy/test/test_static.py
@@ -19,6 +19,10 @@ from cherrypy.test import helper
@pytest.fixture
def unicode_filesystem(tmpdir):
+ _check_unicode_filesystem(tmpdir)
+
+
+def _check_unicode_filesystem(tmpdir):
filename = tmpdir / ntou('☃', 'utf-8')
tmpl = 'File system encoding ({encoding}) cannot support unicode filenames'
msg = tmpl.format(encoding=sys.getfilesystemencoding())
@@ -35,7 +39,7 @@ def ensure_unicode_filesystem():
"""
tmpdir = py.path.local(tempfile.mkdtemp())
try:
- unicode_filesystem(tmpdir)
+ _check_unicode_filesystem(tmpdir)
finally:
tmpdir.remove()