summaryrefslogtreecommitdiff
path: root/tests/functional/t/trailing_whitespaces.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/t/trailing_whitespaces.py')
-rw-r--r--tests/functional/t/trailing_whitespaces.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/functional/t/trailing_whitespaces.py b/tests/functional/t/trailing_whitespaces.py
new file mode 100644
index 000000000..48de809c6
--- /dev/null
+++ b/tests/functional/t/trailing_whitespaces.py
@@ -0,0 +1,11 @@
+"""Regression test for trailing-whitespace (C0303)."""
+# pylint: disable=mixed-line-endings
+from __future__ import print_function
+
+# +1: [trailing-whitespace]
+print('some trailing whitespace')
+# +1: [trailing-whitespace]
+print('trailing whitespace does not count towards the line length limit')
+print('windows line ends are ok')
+# +1: [trailing-whitespace]
+print('but trailing whitespace on win is not')