[Numpy-svn] [numpy/numpy] de988b: TST: Replace use of sys.getsizeof() with explicit ...

GitHub noreply at github.com
Wed Feb 8 19:35:41 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: de988b40c704d1772f629e5a6d0a4e8748f057fc
      https://github.com/numpy/numpy/commit/de988b40c704d1772f629e5a6d0a4e8748f057fc
  Author: Ronan Lamy <ronan.lamy at gmail.com>
  Date:   2017-02-08 (Wed, 08 Feb 2017)

  Changed paths:
    M numpy/core/tests/test_unicode.py

  Log Message:
  -----------
  TST: Replace use of sys.getsizeof() with explicit computation of unicode representation size

This is for PyPy3 compatibility: sys.getsizeof() is CPython-specific and
there doesn't seem to be a pure-Python way of getting the size of the
internal PEP393 Unicode representation, so recompute it using documented
invariants.


  Commit: 520e4988b88b6ac3df3a72e3af657a8d55502d7c
      https://github.com/numpy/numpy/commit/520e4988b88b6ac3df3a72e3af657a8d55502d7c
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2017-02-08 (Wed, 08 Feb 2017)

  Changed paths:
    M numpy/core/tests/test_unicode.py

  Log Message:
  -----------
  Merge pull request #8586 from rlamy/pypy3-getsizeof

PyPy3 compatibility: sys.getsizeof()


Compare: https://github.com/numpy/numpy/compare/98b3127fa61e...520e4988b88b


More information about the Numpy-svn mailing list