[Python-Dev] [Python-checkins] cpython (3.3): backported rev 79713 from 3.4, test_recursion_limit skipped for -O0

Ronald Oussoren ronaldoussoren at mac.com
Wed Apr 24 08:14:13 CEST 2013


On 24 Apr, 2013, at 1:32, "lukasz.langa" <python-checkins at python.org> wrote:

> http://hg.python.org/cpython/rev/9755036c81d0
> changeset:   83510:9755036c81d0
> branch:      3.3
> parent:      83508:44d764238f0d
> user:        Łukasz Langa <lukasz at langa.pl>
> date:        Wed Apr 24 01:29:26 2013 +0200
> summary:
>  backported rev 79713 from 3.4, test_recursion_limit skipped for -O0
> 
> files:
>  Lib/test/test_threading.py |  3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> 
> diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
> --- a/Lib/test/test_threading.py
> +++ b/Lib/test/test_threading.py
> @@ -754,7 +754,8 @@
>         lock = threading.Lock()
>         self.assertRaises(RuntimeError, lock.release)
> 
> -    @unittest.skipUnless(sys.platform == 'darwin', 'test macosx problem')
> +    @unittest.skipUnless(sys.platform == 'darwin' and test.support.python_is_optimized(),
> +                         'test macosx problem')

Wouldn't it be better to just fix the issue? thread_pthread already sets an explicit stack size on OSX, but that value is appearently too small.

Ronald



More information about the Python-Dev mailing list