[Checkins] [zopefoundation/five.formlib] e7ba23: Make testsuite Python 2/3 compatible

Dieter Maurer noreply at github.com
Fri Mar 1 09:44:13 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/five.formlib
  Commit: e7ba23a0b10f00a53b7e2c4a0fdf161510559d0b
      https://github.com/zopefoundation/five.formlib/commit/e7ba23a0b10f00a53b7e2c4a0fdf161510559d0b
  Author: dieter <dieter at handshake.de>
  Date:   2019-01-26 (Sat, 26 Jan 2019)

  Changed paths:
    M src/five/formlib/__init__.py
    M src/five/formlib/tests/formlib.txt
    M src/five/formlib/tests/forms.txt
    M src/five/formlib/tests/test_formlib.py

  Log Message:
  -----------
  Make testsuite Python 2/3 compatible
* Handling of unicode literal string prefix in doctests
  - partly avoided by an explicit conversion to `str` (usually for ASCII values)
  - test partly replaced by a comparison with a unicode literal string (usually for non ASCII values)

* the "cgi" module of Python 3 and Python 2 behave differently for a two small "Content-Length" value
    Py 3: everything above this value is ignored; some data not processed
    Py 2: the value is ignored; all data processed
  To cope with this difference, the "http" function has been replaced by an auxiliary "http_request" function in some tests. "http_request" computes "Content-Length" correctly.

* the test framework (--> "http", "browser") expects different input types for Python 3 and Python 2
    Py 3: text
    Py 2: utf-8 encoded binary strings
  To cope with this difference, input values have been specified by explicit unicode literals (supported by both Python 3 and Python 2) and converted to the required type via an auxiliary "to_input" function.


  Commit: 201cad01cfbe50c2e1940c8ec688278464460025
      https://github.com/zopefoundation/five.formlib/commit/201cad01cfbe50c2e1940c8ec688278464460025
  Author: dieter <dieter at handshake.de>
  Date:   2019-01-26 (Sat, 26 Jan 2019)

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Add "CHANGES.rst" entry


  Commit: 6e31d3b1d6010f55d95cf2ffb89e35add7ecab05
      https://github.com/zopefoundation/five.formlib/commit/6e31d3b1d6010f55d95cf2ffb89e35add7ecab05
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-27 (Wed, 27 Feb 2019)

  Changed paths:
    A .coveragerc
    M .travis.yml
    M setup.py
    M src/five/formlib/tests/formlib.txt
    M src/five/formlib/tests/forms.txt
    M src/five/formlib/tests/test_formlib.py
    A tox.ini

  Log Message:
  -----------
  addressing change requests for PR #7


  Commit: a1ec198a1965469228fb85f1c836ad58f4715b01
      https://github.com/zopefoundation/five.formlib/commit/a1ec198a1965469228fb85f1c836ad58f4715b01
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-27 (Wed, 27 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  try to fix travis configuration


  Commit: 59233584d25987b5c44ea3ffdfe70230f73ecb4d
      https://github.com/zopefoundation/five.formlib/commit/59233584d25987b5c44ea3ffdfe70230f73ecb4d
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml
    M tox.ini

  Log Message:
  -----------
  Try to fix Travis integration


  Commit: 78d339210875cb1b9130030e54c897a437281478
      https://github.com/zopefoundation/five.formlib/commit/78d339210875cb1b9130030e54c897a437281478
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  another trial to fix Travis integration


  Commit: ad69757b9e25d125ade99e4c8d348b27b91d8330
      https://github.com/zopefoundation/five.formlib/commit/ad69757b9e25d125ade99e4c8d348b27b91d8330
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  another trial to fix Travis integration (Python 3.6 removed - this integration uses an outdated version of `Persistence` (and `RestrictedPython`))


  Commit: 2b9447afe91567fabd78be2c0de8f9a09c57ce2d
      https://github.com/zopefoundation/five.formlib/commit/2b9447afe91567fabd78be2c0de8f9a09c57ce2d
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M src/five/formlib/formbase.py
    M src/five/formlib/tests/content.py
    M src/five/formlib/tests/schemacontent.py
    M src/five/formlib/tests/test_formlib.py

  Log Message:
  -----------
  Trial to make `flake8` happy


  Commit: 024b065bcec64f9583df133c925af4263ab278da
      https://github.com/zopefoundation/five.formlib/commit/024b065bcec64f9583df133c925af4263ab278da
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M tox.ini

  Log Message:
  -----------
  another trial to fix Travis integration


  Commit: b02a8f6b7170037d120e67076b84cd98887e773f
      https://github.com/zopefoundation/five.formlib/commit/b02a8f6b7170037d120e67076b84cd98887e773f
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  another trial to fix Travis integration


  Commit: 03dd97c85822cc5176c535e054daf1ed755b4301
      https://github.com/zopefoundation/five.formlib/commit/03dd97c85822cc5176c535e054daf1ed755b4301
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  readd Python 3 tests in Travis integration


  Commit: d8ae82f9ee674294f4d589cfbdbd20dab4242420
      https://github.com/zopefoundation/five.formlib/commit/d8ae82f9ee674294f4d589cfbdbd20dab4242420
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M src/five/formlib/formbase.py
    M src/five/formlib/tests/test_formlib.py

  Log Message:
  -----------
  `flake8` happiness


  Commit: 0d859833b4a8a70a0e4e6155879860692e5e49d4
      https://github.com/zopefoundation/five.formlib/commit/0d859833b4a8a70a0e4e6155879860692e5e49d4
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Travis integration: remove `python: 3.7; dist: xenial` as it gives `3.7 is not installed; attempting download` and the download fails


  Commit: fa77d26a4243bfd23e06b547b5d441fa35ff938c
      https://github.com/zopefoundation/five.formlib/commit/fa77d26a4243bfd23e06b547b5d441fa35ff938c
  Author: dieter <dieter at handshake.de>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Travis integration: the pure Python 3.7 tests use an outdated debian version - use explicitely Python 3.7 from `xenial`


  Commit: 2c4bf8f5d82356684a52847cf25995749c966d7e
      https://github.com/zopefoundation/five.formlib/commit/2c4bf8f5d82356684a52847cf25995749c966d7e
  Author: dieter <dieter at handshake.de>
  Date:   2019-03-01 (Fri, 01 Mar 2019)

  Changed paths:
    M CHANGES.rst
    M setup.py

  Log Message:
  -----------
  added cosmetic changes requested by @icemac


  Commit: b76d68d39db88add73263e44a7558690b650d1f4
      https://github.com/zopefoundation/five.formlib/commit/b76d68d39db88add73263e44a7558690b650d1f4
  Author: Dieter Maurer <d-maurer at users.noreply.github.com>
  Date:   2019-03-01 (Fri, 01 Mar 2019)

  Changed paths:
    A .coveragerc
    M .travis.yml
    M CHANGES.rst
    M setup.py
    M src/five/formlib/__init__.py
    M src/five/formlib/formbase.py
    M src/five/formlib/tests/content.py
    M src/five/formlib/tests/formlib.txt
    M src/five/formlib/tests/forms.txt
    M src/five/formlib/tests/schemacontent.py
    M src/five/formlib/tests/test_formlib.py
    A tox.ini

  Log Message:
  -----------
  Merge pull request #7 from d-maurer/py3_testsuite#6

Make testsuite Python 2/3 compatible


Compare: https://github.com/zopefoundation/five.formlib/compare/226f4a69e07f...b76d68d39db8


More information about the checkins mailing list