Merge pull request #2211 from nicoddemus/trial-envs
Fix pytester internal plugin to work correctly with latest versions of zope.interface
This commit is contained in:
commit
1a2d6388ac
|
@ -29,10 +29,6 @@ env:
|
||||||
- TESTENV=docs
|
- TESTENV=docs
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
|
||||||
# see #1989
|
|
||||||
- env: TESTENV=py27-trial
|
|
||||||
- env: TESTENV=py35-trial
|
|
||||||
include:
|
include:
|
||||||
- env: TESTENV=py36
|
- env: TESTENV=py36
|
||||||
python: '3.6-dev'
|
python: '3.6-dev'
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
expected warnings and the list of caught warnings is added to the
|
expected warnings and the list of caught warnings is added to the
|
||||||
error message. Thanks `@lesteve`_ for the PR.
|
error message. Thanks `@lesteve`_ for the PR.
|
||||||
|
|
||||||
|
* Fix ``pytester`` internal plugin to work correctly with latest versions of
|
||||||
|
``zope.interface`` (`#1989`_). Thanks `@nicoddemus`_ for the PR.
|
||||||
|
|
||||||
* Assert statements of the ``pytester`` plugin again benefit from assertion rewriting (`#1920`_).
|
* Assert statements of the ``pytester`` plugin again benefit from assertion rewriting (`#1920`_).
|
||||||
Thanks `@RonnyPfannschmidt`_ for the report and `@nicoddemus`_ for the PR.
|
Thanks `@RonnyPfannschmidt`_ for the report and `@nicoddemus`_ for the PR.
|
||||||
|
|
||||||
|
@ -31,6 +34,8 @@
|
||||||
.. _@pelme: https://github.com/pelme
|
.. _@pelme: https://github.com/pelme
|
||||||
.. _@eli-b: https://github.com/eli-b
|
.. _@eli-b: https://github.com/eli-b
|
||||||
|
|
||||||
|
|
||||||
|
.. _#1989: https://github.com/pytest-dev/pytest/issues/1989
|
||||||
.. _#1920: https://github.com/pytest-dev/pytest/issues/1920
|
.. _#1920: https://github.com/pytest-dev/pytest/issues/1920
|
||||||
.. _#2129: https://github.com/pytest-dev/pytest/issues/2129
|
.. _#2129: https://github.com/pytest-dev/pytest/issues/2129
|
||||||
.. _#2148: https://github.com/pytest-dev/pytest/issues/2148
|
.. _#2148: https://github.com/pytest-dev/pytest/issues/2148
|
||||||
|
|
|
@ -447,9 +447,9 @@ class Testdir:
|
||||||
the module is re-imported.
|
the module is re-imported.
|
||||||
"""
|
"""
|
||||||
for name in set(sys.modules).difference(self._savemodulekeys):
|
for name in set(sys.modules).difference(self._savemodulekeys):
|
||||||
# it seems zope.interfaces is keeping some state
|
# zope.interface (used by twisted-related tests) keeps internal
|
||||||
# (used by twisted related tests)
|
# state and can't be deleted
|
||||||
if name != "zope.interface":
|
if not name.startswith("zope.interface"):
|
||||||
del sys.modules[name]
|
del sys.modules[name]
|
||||||
|
|
||||||
def make_hook_recorder(self, pluginmanager):
|
def make_hook_recorder(self, pluginmanager):
|
||||||
|
|
|
@ -28,12 +28,6 @@ environment:
|
||||||
- TOXENV: "freeze"
|
- TOXENV: "freeze"
|
||||||
- TOXENV: "docs"
|
- TOXENV: "docs"
|
||||||
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
# see #1989
|
|
||||||
- TOXENV: "py27-trial"
|
|
||||||
- TOXENV: "py35-trial"
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- echo Installed Pythons
|
- echo Installed Pythons
|
||||||
- dir c:\Python*
|
- dir c:\Python*
|
||||||
|
|
Loading…
Reference in New Issue