summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tokenize.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_tokenize.py')
-rw-r--r--Lib/test/test_tokenize.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
index be6c18d..de6e888 100644
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -219,5 +219,15 @@ def foo():
if verbose:
print 'finished'
+def test_rarrow():
+ """
+ This function exists solely to test the tokenization of the RARROW
+ operator.
+
+ >>> tokenize(iter(['->']).next) #doctest: +NORMALIZE_WHITESPACE
+ 1,0-1,2:\tOP\t'->'
+ 2,0-2,0:\tENDMARKER\t''
+ """
+
if __name__ == "__main__":
test_main()