summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-13 03:57:22 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-13 03:57:22 (GMT)
commitbf9ac4bd8931aae6c1aca77e62e0eb15e2ef8a28 (patch)
treea3e26a5e3912b77cd4b9407ffa425bb74f5074d5
parent41a65ea7fec64be031b79041ebba875bde1155d6 (diff)
downloadcpython-bf9ac4bd8931aae6c1aca77e62e0eb15e2ef8a28.zip
cpython-bf9ac4bd8931aae6c1aca77e62e0eb15e2ef8a28.tar.gz
cpython-bf9ac4bd8931aae6c1aca77e62e0eb15e2ef8a28.tar.bz2
Whitespace normalization.
-rw-r--r--Lib/test/test_funcattrs.py2
-rw-r--r--Lib/test/test_new.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_funcattrs.py b/Lib/test/test_funcattrs.py
index 3ccb263..381412f 100644
--- a/Lib/test/test_funcattrs.py
+++ b/Lib/test/test_funcattrs.py
@@ -276,7 +276,7 @@ def test_func_name():
verify(f.func_name == "h")
cantset(f, "func_globals", 1)
cantset(f, "__name__", 1)
-
+
def test_func_code():
def f(): pass
diff --git a/Lib/test/test_new.py b/Lib/test/test_new.py
index 33eba14..f022f7e 100644
--- a/Lib/test/test_new.py
+++ b/Lib/test/test_new.py
@@ -100,7 +100,7 @@ print 'new.code()'
# Note: Jython will never have new.code()
if hasattr(new, 'code'):
def f(a): pass
-
+
c = f.func_code
argcount = c.co_argcount
nlocals = c.co_nlocals
@@ -116,16 +116,16 @@ if hasattr(new, 'code'):
lnotab = c.co_lnotab
freevars = c.co_freevars
cellvars = c.co_cellvars
-
+
d = new.code(argcount, nlocals, stacksize, flags, codestring,
constants, names, varnames, filename, name,
firstlineno, lnotab, freevars, cellvars)
-
+
# test backwards-compatibility version with no freevars or cellvars
d = new.code(argcount, nlocals, stacksize, flags, codestring,
constants, names, varnames, filename, name,
firstlineno, lnotab)
-
+
try: # this used to trigger a SystemError
d = new.code(-argcount, nlocals, stacksize, flags, codestring,
constants, names, varnames, filename, name,
@@ -143,7 +143,7 @@ if hasattr(new, 'code'):
pass
else:
raise TestFailed, "negative co_nlocals didn't trigger an exception"
-
+
try: # this used to trigger a Py_FatalError!
d = new.code(argcount, nlocals, stacksize, flags, codestring,
constants, (5,), varnames, filename, name,