]> git.ipfire.org Git - thirdparty/tornado.git/commit
Make test_root_static_path more robust. 1567/head
authorBen Darnell <ben@bendarnell.com>
Sat, 24 Oct 2015 13:57:16 +0000 (09:57 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 24 Oct 2015 13:57:16 +0000 (09:57 -0400)
commitdc5657c40c15e7689409544428efef5f65f4328e
tree20ed8ff8231181379e167b3dff73f65f57e94d2e
parentd50be4e5f53fbff7a0a6bf0b4197c94827b67ed6
Make test_root_static_path more robust.

Always convert `__file__` to an absolute path (this is already
guaranteed in Python 3.4+, but in older versions it would sometimes be
relative). Encode the path so the test can pass when run from a
directory containing spaces or other special characters.

Fixes #1565
tornado/test/web_test.py