From 0e6d213177dd571dd634d286ae45c38eb06d63b9 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 15 Feb 2001 23:56:39 +0000 Subject: Whitespace normalization. --- Lib/test/test_scope.py | 8 ++++---- Lib/test/test_symtable.py | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'Lib/test') diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index a58be007b8..7fd561baef 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py @@ -207,7 +207,7 @@ check_syntax("""def unoptimized_clash2(): return f """) -# XXX could allow this for exec with const argument, but what's the point +# XXX could allow this for exec with const argument, but what's the point check_syntax("""def error(y): exec "a = 1" def f(x): @@ -225,7 +225,7 @@ check_syntax("""def f(): def g(): from string import * return strip # global or local? -""") +""") # and verify a few cases that should work @@ -302,9 +302,9 @@ def makeReturner(*lst): def returner(): return lst return returner - + verify(makeReturner(1,2,3)() == (1,2,3)) - + def makeReturner2(**kwargs): def returner(): return kwargs diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py index c513308650..56d772ea45 100644 --- a/Lib/test/test_symtable.py +++ b/Lib/test/test_symtable.py @@ -6,4 +6,3 @@ symbols = _symtable.symtable("def f(x): return x", "?", "exec") verify(symbols[0].name == "global") verify(len([ste for ste in symbols.values() if ste.name == "f"]) == 1) - -- cgit v1.2.1