diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-26 05:23:19 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-26 05:23:19 (GMT) |
commit | 66cb018c96e49b5e5cf1b8fc395171a223d86d8e (patch) | |
tree | 7cedb1e491d755e7ce25a84f6b3d590d336d631b /Lib | |
parent | 5b799c1f3d1e96e2d45737bed95a149d356ad5de (diff) | |
download | cpython-66cb018c96e49b5e5cf1b8fc395171a223d86d8e.zip cpython-66cb018c96e49b5e5cf1b8fc395171a223d86d8e.tar.gz cpython-66cb018c96e49b5e5cf1b8fc395171a223d86d8e.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_capi.py | 1 | ||||
-rw-r--r-- | Lib/test/test_peepholer.py | 10 |
2 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py index bda706a..1dd2461 100644 --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py @@ -46,4 +46,3 @@ if have_thread_state: import threading t=threading.Thread(target=TestThreadState) t.start() - diff --git a/Lib/test/test_peepholer.py b/Lib/test/test_peepholer.py index 6c1900d..33eb0f5 100644 --- a/Lib/test/test_peepholer.py +++ b/Lib/test/test_peepholer.py @@ -42,8 +42,8 @@ class TestTranforms(unittest.TestCase): 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 @@ class TestTranforms(unittest.TestCase): 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) |