summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2020-11-13 14:31:52 -0800
committerSteve Piercy <web@stevepiercy.com>2020-11-13 14:31:52 -0800
commit8e3a168e5758308ef3b9dc2392d8087c9b564c3a (patch)
tree775973b0cfa865e06615a5e81ef29fa2cdc56531
parentb2cb96a6ac1240950ca317c71b4e8b0b9c41b9bf (diff)
downloadwebtest-8e3a168e5758308ef3b9dc2392d8087c9b564c3a.tar.gz
Git on Windows will silently turn `\n` into `\r\n`, causing the test of this file's upload content comparison to fail.
See https://github.com/Pylons/webtest/pull/231#issuecomment-726989829
-rw-r--r--.gitattributes5
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..75b85d9
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,5 @@
+# Set the default behaviour, in case poeple don't have core.autocrlf set
+* text=auto
+
+# Always lf, this file size is checked in a test
+tests/__init__.py text eol=lf