[Python-checkins] python/dist/src/Lib/test test_capi.py, 1.7,
1.8 test_peepholer.py, 1.1, 1.2
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Thu Aug 26 07:23:22 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19472/Lib/test
Modified Files:
test_capi.py test_peepholer.py
Log Message:
Whitespace normalization.
Index: test_capi.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_capi.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- test_capi.py 24 Aug 2004 22:24:08 -0000 1.7
+++ test_capi.py 26 Aug 2004 05:23:19 -0000 1.8
@@ -46,4 +46,3 @@
import threading
t=threading.Thread(target=TestThreadState)
t.start()
-
Index: test_peepholer.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_peepholer.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test_peepholer.py 23 Aug 2004 23:37:47 -0000 1.1
+++ test_peepholer.py 26 Aug 2004 05:23:19 -0000 1.2
@@ -42,8 +42,8 @@
def test_none_as_constant(self):
# LOAD_GLOBAL None --> LOAD_CONST None
def f(x):
- None
- return x
+ None
+ return x
asm = disassemble(f)
for elem in ('LOAD_GLOBAL',):
self.assert_(elem not in asm)
@@ -53,9 +53,9 @@
def test_while_one(self):
# Skip over: LOAD_CONST trueconst JUMP_IF_FALSE xx POP_TOP
def f():
- while 1:
- pass
- return list
+ while 1:
+ pass
+ return list
asm = disassemble(f)
for elem in ('LOAD_CONST', 'JUMP_IF_FALSE'):
self.assert_(elem not in asm)
More information about the Python-checkins
mailing list