diff Lib/test/test_tokenize.py @ 80192:1fdeddabddda 3.3

#16152: merge with 3.2.
author Ezio Melotti <ezio.melotti@gmail.com>
date Sat, 03 Nov 2012 17:46:51 +0200
parents b4322ad1fec4 3ffff1798ed5
children 2dfe8262093c
line wrap: on
line diff
--- a/Lib/test/test_tokenize.py	Fri Nov 02 17:49:22 2012 +0100
+++ b/Lib/test/test_tokenize.py	Sat Nov 03 17:46:51 2012 +0200
@@ -1109,6 +1109,10 @@
                                   token.NAME, token.AMPER, token.NUMBER,
                                   token.RPAR)
 
+    def test_pathological_trailing_whitespace(self):
+        # See http://bugs.python.org/issue16152
+        self.assertExactTypeEqual('@          ', token.AT)
+
 __test__ = {"doctests" : doctests, 'decistmt': decistmt}
 
 def test_main():