[Checkins] [zopefoundation/z3c.testsetup] 04b4b2: Make get_keyword_params() work in Python3.

GitHub noreply at github.com
Thu May 7 23:13:12 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/z3c.testsetup
  Commit: 04b4b20cab9504f3feb66e4b6defdbe526182df0
      https://github.com/zopefoundation/z3c.testsetup/commit/04b4b20cab9504f3feb66e4b6defdbe526182df0
  Author: ulif <uli at gnufix.de>
  Date:   2015-05-07 (Thu, 07 May 2015)

  Changed paths:
    M src/z3c/testsetup/util.py

  Log Message:
  -----------
  Make get_keyword_params() work in Python3.

Looks like what is considered a method in Python2, is a function in
Python3. We do not have to be too picky here. Just make sure that the
method/function signature can be parsed.


  Commit: df53477203070e968d8a4658b7f39cb50ae5c51b
      https://github.com/zopefoundation/z3c.testsetup/commit/df53477203070e968d8a4658b7f39cb50ae5c51b
  Author: ulif <uli at gnufix.de>
  Date:   2015-05-07 (Thu, 07 May 2015)

  Changed paths:
    M src/z3c/testsetup/README.txt
    M src/z3c/testsetup/testrunner.txt

  Log Message:
  -----------
  Fix tests to reflect pep8 changes.

Some tests print source files. As these sources have changed (pep8),
also the tests print different output.


  Commit: 2f645a0aeafe7d3eb6c4a6cf88926dfd72956e0f
      https://github.com/zopefoundation/z3c.testsetup/commit/2f645a0aeafe7d3eb6c4a6cf88926dfd72956e0f
  Author: ulif <uli at gnufix.de>
  Date:   2015-05-07 (Thu, 07 May 2015)

  Changed paths:
    A src/z3c/testsetup/tests/test_util.py
    M src/z3c/testsetup/util.py

  Log Message:
  -----------
  Add helper to determine zope.app.testing usability.

While z3c.testsetup can work also without zope.app.testing
installed, it runs into trouble when z.a.testing is installed but
not in a usable state. This is the case with Python 3.x at the
moment: you can install it, but it will be broken.

Therefore we need a way to determine clearly (in tests and code)
whether we can import *and use* zope.app.testing. The new function
is meant for that purpose.


  Commit: 22a61ca782510c18d2f85b4a27ca2f3ed9d64092
      https://github.com/zopefoundation/z3c.testsetup/commit/22a61ca782510c18d2f85b4a27ca2f3ed9d64092
  Author: ulif <uli at gnufix.de>
  Date:   2015-05-07 (Thu, 07 May 2015)

  Changed paths:
    M src/z3c/testsetup/tests/test_testsetup.py

  Log Message:
  -----------
  Skip some tests if zope.app.testing not working.

With Python3 and missing working zope.app.testing we can (and should)
run other tests, but we can skip those tests that are clearly geared
towards accessibility of a working zope.app.testing. These are mainly
the functional tests.

Most tests still fail under Python3 and will have to be separated in
functional and not-functional tests.


Compare: https://github.com/zopefoundation/z3c.testsetup/compare/745748f01772...22a61ca78251


More information about the checkins mailing list