summaryrefslogtreecommitdiff
path: root/tests/functional/tokenize_error.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/tokenize_error.py')
-rw-r--r--tests/functional/tokenize_error.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/tokenize_error.py b/tests/functional/tokenize_error.py
new file mode 100644
index 000000000..323950d91
--- /dev/null
+++ b/tests/functional/tokenize_error.py
@@ -0,0 +1,6 @@
+"""A module that is accepted by Python but rejected by tokenize.
+
+The problem is the trailing line continuation at the end of the line,
+which produces a TokenError."""
+# +2: [syntax-error]
+""\