Fixup things after rebase

Some changes to make things work on top of current features branch.
This commit is contained in:
Floris Bruynooghe
2016-07-14 12:42:29 +01:00
parent 743f59afb2
commit 51ee7f8734
3 changed files with 10 additions and 8 deletions

View File

@@ -5,7 +5,6 @@ import py
import os
import sys
from _pytest.monkeypatch import monkeypatch
from _pytest.assertion import util
from _pytest.assertion import rewrite
@@ -79,7 +78,8 @@ def install_importhook(config, mode):
config._assertstate = AssertionState(config, mode)
_load_modules(mode)
m = monkeypatch()
from _pytest.monkeypatch import MonkeyPatch
m = MonkeyPatch()
config._cleanup.append(m.undo)
m.setattr(py.builtin.builtins, 'AssertionError',
reinterpret.AssertionError) # noqa