From f778b5e29a04ddf1a7dd9bb5e8d00656fa44ebbe Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 15 Dec 2007 19:57:39 -0500 Subject: [PATCH] Fix tests: <<= is now TOKEN_AUGEQUAL, not TOKEN_PUNCTUATION --- lib/reinteract/tokenize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/reinteract/tokenize.py b/lib/reinteract/tokenize.py index f875a2c..0826258 100644 --- a/lib/reinteract/tokenize.py +++ b/lib/reinteract/tokenize.py @@ -280,7 +280,8 @@ if __name__ == '__main__': expect('@', [(TOKEN_PUNCTUATION, '@')]) expect('(', [(TOKEN_LPAREN, '(')], expected_stack=['(']) - expect('<<=', [(TOKEN_PUNCTUATION, '<<=')]) + expect('<<', [(TOKEN_PUNCTUATION, '<<')]) + expect('<<=', [(TOKEN_AUGEQUAL, '<<=')]) expect('<<>', [(TOKEN_PUNCTUATION, '<<'), (TOKEN_PUNCTUATION, '>')]) expect("#foo", [(TOKEN_COMMENT, "#foo")]) -- 2.11.4.GIT