[Checkins] [zopefoundation/z3c.testsetup] 6bebeb: Fix test to work with Python2.x and 3.x.

GitHub noreply at github.com
Wed May 20 23:05:38 CEST 2015


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

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

  Log Message:
  -----------
  Fix test to work with Python2.x and 3.x.

The marker extracted by get_marker_from_file can be u"foo" or
"foo". First is correct with Python 2.x, the latter with Python
3.x. The changed doctest accepts both forms.


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

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

  Log Message:
  -----------
  Make marker parsing in files encoding-safe.

When markers are looked up in files, we now do not assume any convenient
encoding any more. Instead we ignore anything unreadable in UTF-8 and
carry on.


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

  Changed paths:
    M src/z3c/testsetup/base.py
    A src/z3c/testsetup/tests/test_base.py

  Log Message:
  -----------
  Close files properly and expect strange encodings.

Fix another place where files were not closed properly and non-standard
file encodings could break things. tox runs for py26, py27, py33, py34
pass now.


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

  Changed paths:
    M CHANGES.rst

  Log Message:
  -----------
  Update history.


Compare: https://github.com/zopefoundation/z3c.testsetup/compare/b2001831c189...e55ecb83ba8f


More information about the checkins mailing list