summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2014-03-23 11:54:04 +0100
committerFlorent Xicluna <florent.xicluna@gmail.com>2014-03-23 11:54:04 +0100
commitfd5cc44df54b0aeff605ccc62ed1e69fdb52c28b (patch)
treeb0681e4fc4863d75c164b658d57919908f8dd89a /testsuite
parent61a1f6ddc749ff0e909532f7044c25debe62c404 (diff)
downloadpep8-fd5cc44df54b0aeff605ccc62ed1e69fdb52c28b.tar.gz
Allow long lines in comments too, with similar rules; related to issue #224
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/E50.py34
-rw-r--r--testsuite/utf-8.py12
2 files changed, 40 insertions, 6 deletions
diff --git a/testsuite/E50.py b/testsuite/E50.py
index 6d62b38..31ad6b9 100644
--- a/testsuite/E50.py
+++ b/testsuite/E50.py
@@ -68,3 +68,37 @@ that I'm calling:
#: E501
"""
longnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaces"""
+#: Okay
+"""
+This
+ almost_empty_line
+"""
+#: E501
+"""
+This
+ almost_empty_line
+"""
+#: E501
+# A basic comment
+# with a long long long long long long long long long long long long long long long long line
+
+#
+#: Okay
+# I'm some great comment. Because I'm so great, I'm going to give you a
+# reference to some valuable information about some API that I'm calling:
+#
+# http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx
+
+import this
+
+# longnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaceslongnospaces
+
+#
+#: Okay
+# This
+# almost_empty_line
+
+#
+#: E501
+# This
+# almost_empty_line
diff --git a/testsuite/utf-8.py b/testsuite/utf-8.py
index 7a3d249..2cee579 100644
--- a/testsuite/utf-8.py
+++ b/testsuite/utf-8.py
@@ -31,11 +31,11 @@ class Rectangle(Blob):
# 78 narrow chars (Na) + 1 wide char (W)
# 01 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8情
-# 2 narrow chars (Na) + 40 wide chars (W)
-# 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
+# 3 narrow chars (Na) + 40 wide chars (W)
+# 情 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
-# 2 narrow chars (Na) + 77 wide chars (W)
-# 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
+# 3 narrow chars (Na) + 76 wide chars (W)
+# 情 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
#
#: E501
@@ -47,6 +47,6 @@ class Rectangle(Blob):
# 01 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8情情
#
#: E501
-# 2 narrow chars (Na) + 78 wide chars (W)
-# 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
+# 3 narrow chars (Na) + 77 wide chars (W)
+# 情 情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情情
#