Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Unified Diff: Lib/test/test_multiprocessing.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_mmap.py ('k') | Lib/test/test_optparse.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_multiprocessing.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_multiprocessing.py Mon Jul 25 09:47:18 2011 -0400
@@ -1721,8 +1721,6 @@
# verify the state of the heap
all = []
occupied = 0
- heap._lock.acquire()
- self.addCleanup(heap._lock.release)
for L in list(heap._len_to_seq.values()):
for arena, start, stop in L:
all.append((heap._arenas.index(arena), start, stop,
@@ -1740,28 +1738,6 @@
self.assertTrue((arena != narena and nstart == 0) or
(stop == nstart))
- def test_free_from_gc(self):
- # Check that freeing of blocks by the garbage collector doesn't deadlock
- # (issue #12352).
- # Make sure the GC is enabled, and set lower collection thresholds to
- # make collections more frequent (and increase the probability of
- # deadlock).
- if not gc.isenabled():
- gc.enable()
- self.addCleanup(gc.disable)
- thresholds = gc.get_threshold()
- self.addCleanup(gc.set_threshold, *thresholds)
- gc.set_threshold(10)
-
- # perform numerous block allocations, with cyclic references to make
- # sure objects are collected asynchronously by the gc
- for i in range(5000):
- a = multiprocessing.heap.BufferWrapper(1)
- b = multiprocessing.heap.BufferWrapper(1)
- # circular references
- a.buddy = b
- b.buddy = a
-
#
#
#
« no previous file with comments | « Lib/test/test_mmap.py ('k') | Lib/test/test_optparse.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+