diff options
author | Armin Rigo <arigo@tunes.org> | 2017-01-12 18:15:33 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2017-01-12 18:15:33 +0100 |
commit | a72d46764ff530146ff7ffaadad062ccfb70c8b2 (patch) | |
tree | 61ba21e362ccba9a71725500d7c1067d55bc7897 /lib-python | |
parent | Fix the warnings in audioop, introduced in a recent cffi version (diff) | |
download | pypy-a72d46764ff530146ff7ffaadad062ccfb70c8b2.tar.gz pypy-a72d46764ff530146ff7ffaadad062ccfb70c8b2.tar.bz2 pypy-a72d46764ff530146ff7ffaadad062ccfb70c8b2.zip |
replace commenting-out-some-lines with check_impl_detail()
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/test/test_multiprocessing.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib-python/2.7/test/test_multiprocessing.py b/lib-python/2.7/test/test_multiprocessing.py index 3b6d22fc7c..ba9caec0ad 100644 --- a/lib-python/2.7/test/test_multiprocessing.py +++ b/lib-python/2.7/test/test_multiprocessing.py @@ -1969,9 +1969,10 @@ class _TestHeap(BaseTestCase): if not gc.isenabled(): gc.enable() self.addCleanup(gc.disable) - #thresholds = gc.get_threshold() - #self.addCleanup(gc.set_threshold, *thresholds) - #gc.set_threshold(10) + if test_support.check_impl_detail(cpython=True): + 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 |