[pypy-commit] pypy py3.6: Add GC collect to lock_tests weakref delete test.

2018-09-19 Thread David C Ellis
Author: David C Ellis Branch: py3.6 Changeset: r95141:5f0d3bf975f8 Date: 2018-09-19 12:18 +0100 http://bitbucket.org/pypy/pypy/changeset/5f0d3bf975f8/ Log:Add GC collect to lock_tests weakref delete test. diff --git a/lib-python/3/test/lock_tests.py b/lib-python/3/test/lock_tests.py --- a

[pypy-commit] pypy py3.6: Add GC collects to test_tracemalloc - Now gives the expected warning

2018-09-19 Thread David C Ellis
Author: David C Ellis Branch: py3.6 Changeset: r95142:7eda7fcc5e0f Date: 2018-09-19 14:06 +0100 http://bitbucket.org/pypy/pypy/changeset/7eda7fcc5e0f/ Log:Add GC collects to test_tracemalloc - Now gives the expected warning Test still fails as the message is different diff --git a

[pypy-commit] pypy py3.6: Warning should be raised even if it's a float subclass

2018-09-25 Thread David C Ellis
Author: David C Ellis Branch: py3.6 Changeset: r95164:8feed387bf12 Date: 2018-09-24 14:19 +0100 http://bitbucket.org/pypy/pypy/changeset/8feed387bf12/ Log:Warning should be raised even if it's a float subclass diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobje

[pypy-commit] pypy py3.6: Check isinstance so rpython translates.

2018-09-25 Thread David C Ellis
Author: David C Ellis Branch: py3.6 Changeset: r95163:fec283ea730d Date: 2018-09-20 00:56 +0100 http://bitbucket.org/pypy/pypy/changeset/fec283ea730d/ Log:Check isinstance so rpython translates. diff --git a/pypy/objspace/std/floatobject.py b/pypy/objspace/std/floatobject.py --- a/pypy

[pypy-commit] pypy py3.6: Coerce float subclasses returned by __float__ to float class

2018-09-25 Thread David C Ellis
Author: David C Ellis Branch: py3.6 Changeset: r95162:b7814a6b95eb Date: 2018-09-19 19:31 +0100 http://bitbucket.org/pypy/pypy/changeset/b7814a6b95eb/ Log:Coerce float subclasses returned by __float__ to float class First working version diff --git a/pypy/objspace/std

[pypy-commit] pypy py3.6: Clean up unnecessary logic.

2018-09-25 Thread David C Ellis
Author: David C Ellis Branch: py3.6 Changeset: r95165:dc9667baf57c Date: 2018-09-25 13:15 +0100 http://bitbucket.org/pypy/pypy/changeset/dc9667baf57c/ Log:Clean up unnecessary logic. space.float_w does what was needed in the case the object is a subclass of float. elif means