[Python-checkins] r45402 - python/trunk/Lib/test/leakers/test_tee.py
tim.peters
python-checkins at python.org
Fri Apr 14 20:34:14 CEST 2006
Author: tim.peters
Date: Fri Apr 14 20:34:14 2006
New Revision: 45402
Modified:
python/trunk/Lib/test/leakers/test_tee.py
Log:
Whitespace normalization.
Modified: python/trunk/Lib/test/leakers/test_tee.py
==============================================================================
--- python/trunk/Lib/test/leakers/test_tee.py (original)
+++ python/trunk/Lib/test/leakers/test_tee.py Fri Apr 14 20:34:14 2006
@@ -6,20 +6,20 @@
import gc
def leak():
- def inner():
- def fib():
- def yield_identity_forever(g):
- while 1:
- yield g
- def _fib():
- for i in yield_identity_forever(head):
- yield i
- head, tail, result = tee(_fib(), 3)
- return result
+ def inner():
+ def fib():
+ def yield_identity_forever(g):
+ while 1:
+ yield g
+ def _fib():
+ for i in yield_identity_forever(head):
+ yield i
+ head, tail, result = tee(_fib(), 3)
+ return result
- x = fib()
- x.next()
- inner()
- gc.collect() ; gc.collect()
- # this is expected to return 0
- return gc.collect()
+ x = fib()
+ x.next()
+ inner()
+ gc.collect() ; gc.collect()
+ # this is expected to return 0
+ return gc.collect()
More information about the Python-checkins
mailing list