]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
test: Add gitattributes for test data files
authorBen Darnell <ben@bendarnell.com>
Sat, 2 Nov 2019 21:29:29 +0000 (17:29 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 18 Jan 2020 19:18:50 +0000 (14:18 -0500)
This ensures that the tests pass on Windows regardless of the user's git
CRLF settings.

.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..facf16e
--- /dev/null
@@ -0,0 +1,4 @@
+# Tests of static file handling assume unix-style line endings.
+tornado/test/static/*.txt text eol=lf
+tornado/test/static/dir/*.html text eol=lf
+tornado/test/templates/*.html text eol=lf