[pypy-commit] pypy default: simple fixes
mattip
pypy.commits at gmail.com
Sun Oct 2 01:19:00 EDT 2016
Author: Matti Picus <matti.picus at gmail.com>
Branch:
Changeset: r87515:4e52c96a1637
Date: 2016-10-02 08:17 +0300
http://bitbucket.org/pypy/pypy/changeset/4e52c96a1637/
Log: simple fixes
diff --git a/pypy/doc/whatsnew-head.rst b/pypy/doc/whatsnew-head.rst
--- a/pypy/doc/whatsnew-head.rst
+++ b/pypy/doc/whatsnew-head.rst
@@ -33,7 +33,7 @@
from somewhere else. You no longer have to do the same with the
``pypy`` executable, as long as it finds its ``libpypy-c.so`` library.
-.. branch: _warning
+.. branch: _warnings
CPython allows warning.warn(('something', 1), Warning), on PyPy this
produced a "expected a readable buffer object" error. Test and fix.
@@ -43,6 +43,11 @@
CPython rejects 'a'.strip(buffer(' ')); only None, str or unicode are
allowed as arguments. Test and fix for str and unicode
+.. branch: faulthandler
+
+Port the 'faulthandler' module to PyPy default. This module is standard
+in Python 3.3 but can also be installed from CPython >= 2.6 from PyPI.
+
.. branch: test-cpyext
Refactor cpyext testing to be more pypy3-friendly.
diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -384,6 +384,12 @@
def debug_collect(space):
rawrefcount._collect()
+def gc_collect3(space):
+ import gc
+ gc.collect()
+ gc.collect()
+ gc.collect()
+
class AppTestCpythonExtensionBase(LeakCheckingTest):
def setup_class(cls):
@@ -398,6 +404,8 @@
#state = cls.space.fromcache(RefcountState) ZZZ
#state.non_heaptypes_w[:] = []
cls.w_debug_collect = space.wrap(interp2app(debug_collect))
+ else:
+ cls.debug_collect = gc_collect3
def record_imported_module(self, name):
"""
More information about the pypy-commit
mailing list