[Checkins] [zopefoundation/Zope] 1951b7: Use `self.assertIsInstance`.

GitHub noreply at github.com
Mon May 15 20:13:04 CEST 2017


  Branch: refs/heads/more-py3-3
  Home:   https://github.com/zopefoundation/Zope
  Commit: 1951b730d2a2e57499fd3913d9eab39806a3a85d
      https://github.com/zopefoundation/Zope/commit/1951b730d2a2e57499fd3913d9eab39806a3a85d
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/App/tests/testImageFile.py
    M src/App/tests/test_ApplicationManager.py
    M src/OFS/tests/testApplication.py
    M src/OFS/tests/testFileAndImage.py
    M src/OFS/tests/testObjectManager.py
    M src/OFS/tests/testProperties.py
    M src/OFS/tests/test_DTMLDocument.py
    M src/OFS/tests/test_DTMLMethod.py
    M src/OFS/tests/test_Uninstalled.py
    M src/Products/Five/browser/tests/resource.txt
    M src/Products/Five/browser/tests/test_pagetemplatefile.py
    M src/Products/PageTemplates/tests/testExpressions.py
    M src/Testing/ZopeTestCase/testPortalTestCase.py
    M src/ZPublisher/tests/testHTTPRequest.py
    M src/ZPublisher/tests/testHTTPResponse.py
    M src/ZPublisher/tests/test_WSGIPublisher.py
    M src/ZPublisher/tests/test_pubevents.py

  Log Message:
  -----------
  Use `self.assertIsInstance`.


  Commit: f4f0f23c7f211bd6d9d376d48a365b940c48e63a
      https://github.com/zopefoundation/Zope/commit/f4f0f23c7f211bd6d9d376d48a365b940c48e63a
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/ZTUtils/Lazy.py

  Log Message:
  -----------
  Change `ZTUtils.Lazy` to support slicing via `_getitem__`.

`__getslice__` is deprecated since Python 2.0 :))

This adds support for extended slicing and the step argument. A lot
of the classes defer to one common implementation for slicing support
in the abstract Lazy subclass, but continue to implement their own
efficient single key lookup.


Compare: https://github.com/zopefoundation/Zope/compare/614d545592a2...f4f0f23c7f21


More information about the checkins mailing list