[Checkins] [zopefoundation/zope.testrunner] ce9cd9: Fix FutureWarning on Python 3.8

Michael Howitz noreply at github.com
Fri Mar 15 07:57:38 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.testrunner
  Commit: ce9cd9dbe111fbfb62a533feddb3dd9f3adde0ba
      https://github.com/zopefoundation/zope.testrunner/commit/ce9cd9dbe111fbfb62a533feddb3dd9f3adde0ba
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M src/zope/testrunner/tests/testrunner-colors.rst

  Log Message:
  -----------
  Fix FutureWarning on Python 3.8

<doctest testrunner-colors.rst[5]>:2: FutureWarning: Possible nested set at position 2
  _color_regexp = re.compile('\033[[]([0-9;]*)m')


  Commit: 32575171f39ef6d1203bd3a839e7431aa3b384ec
      https://github.com/zopefoundation/zope.testrunner/commit/32575171f39ef6d1203bd3a839e7431aa3b384ec
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M src/zope/testrunner/tests/testrunner-colors.rst

  Log Message:
  -----------
  Do not make assertions about stdlib's doctest.py

The source code in stdlib's doctest.py changed between Python 3.7 and
3.8 sufficiently to break even the cut down assertion we already have.

      {red}      File ".../lib/python3.8/doctest.py", Line NNN, in __run{normal}
    - {red}        compileflags, 1)...{normal}
    + {red}        exec(compile(example.source, filename, "single",{normal}

I get the feeling Python 3.8 points to the first line in a multiline
statement in tracebacks, whereas older Python versions usually pointed
to the last line.


  Commit: 0b3dbf2e5ade3708d7f22176f4251c4ebcd3ad2a
      https://github.com/zopefoundation/zope.testrunner/commit/0b3dbf2e5ade3708d7f22176f4251c4ebcd3ad2a
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M src/zope/testrunner/find.py
    M src/zope/testrunner/tests/testrunner-debugging-import-failure.rst

  Log Message:
  -----------
  Fix test failure on Python 3.8

As I mentioned in the previous commit, Python 3.8 prints the first line
of a multiline statement instead of the last line:

      TypeError: Invalid test_suite, None, in tests2
      > ...find.py(NNN)find_suites()
    - -> % (suite, module_name)
    + -> raise TypeError(
      (Pdb) c
      EndRun raised

We don't need to care about that if we convert this to a single-line
statement.


  Commit: 5af9a420dd422877bb94e41be76b36d1529d0538
      https://github.com/zopefoundation/zope.testrunner/commit/5af9a420dd422877bb94e41be76b36d1529d0538
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M .travis.yml

  Log Message:
  -----------
  Test Python 3.8 prereleases on Travis CI


  Commit: aa83fad63ee3b236a32cf71df7379c6f1171234e
      https://github.com/zopefoundation/zope.testrunner/commit/aa83fad63ee3b236a32cf71df7379c6f1171234e
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M appveyor.yml

  Log Message:
  -----------
  Avoid PowerShell in Appveyor

PowerShell treats any output to standard error (such as pip's
deprecation warning about Python 2.7 and 3.4 reaching EOL soon) as a
fatal error.


  Commit: e7886067f33de93a1ce5b599ef749c51f448c9fd
      https://github.com/zopefoundation/zope.testrunner/commit/e7886067f33de93a1ce5b599ef749c51f448c9fd
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M appveyor.yml

  Log Message:
  -----------
  cmd.exe doesn't like undefined environment variables?


  Commit: b5b4a58e402a48d7aa9ac1d56a12effeba4abd0d
      https://github.com/zopefoundation/zope.testrunner/commit/b5b4a58e402a48d7aa9ac1d56a12effeba4abd0d
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-03-15 (Fri, 15 Mar 2019)

  Changed paths:
    M .travis.yml
    M appveyor.yml
    M src/zope/testrunner/find.py
    M src/zope/testrunner/tests/testrunner-colors.rst
    M src/zope/testrunner/tests/testrunner-debugging-import-failure.rst

  Log Message:
  -----------
  Merge pull request #89 from zopefoundation/py38

Fix test failures on Python 3.8.0a1


Compare: https://github.com/zopefoundation/zope.testrunner/compare/6350ba254a2f...b5b4a58e402a


More information about the checkins mailing list