[Checkins] [zopefoundation/zope.testrunner] ce9cd9: Fix FutureWarning on Python 3.8
Marius Gedminas
noreply at github.com
Tue Feb 12 10:56:12 CET 2019
Branch: refs/heads/py38
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.
Compare: https://github.com/zopefoundation/zope.testrunner/compare/ce9cd9dbe111%5E...0b3dbf2e5ade
More information about the checkins
mailing list