diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-11-03 02:32:46 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-11-03 02:32:46 +0000 |
commit | abd8a336a3ab390a2ea4b15a0ecd187e482001af (patch) | |
tree | ff6e8502e3fc60d51ee5309d6a01a7b8b6bd76dc /Lib/test/test_grammar.py | |
parent | be1bc3b63a0a07af4b204519bb0decd9714ea8ba (diff) | |
download | cpython-git-abd8a336a3ab390a2ea4b15a0ecd187e482001af.tar.gz |
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 26c9392798..69e1980158 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -123,10 +123,10 @@ class GrammarTests(unittest.TestCase): # single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE # XXX can't test in a script -- this rule is only used when interactive - + # file_input: (NEWLINE | stmt)* ENDMARKER # Being tested as this very moment this very module - + # expr_input: testlist NEWLINE # XXX Hard to test -- used only in calls to input() @@ -329,7 +329,7 @@ class GrammarTests(unittest.TestCase): # which is not available in unittest. save_stdout = sys.stdout sys.stdout = StringIO.StringIO() - + print 1, 2, 3 print 1, 2, 3, print @@ -563,7 +563,7 @@ hello world elif 0: pass elif 0: pass else: pass - + def testWhile(self): # 'while' test ':' suite ['else' ':' suite] while 0: pass @@ -696,7 +696,7 @@ hello world def testSelectors(self): ### trailer: '(' [testlist] ')' | '[' subscript ']' | '.' NAME ### subscript: expr | [expr] ':' [expr] - + import sys, time c = sys.path[0] x = time.time() |