diff options
author | holger krekel <holger@merlinux.eu> | 2014-10-08 20:23:40 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2014-10-08 20:23:40 +0200 |
commit | 0253f7b8d5d66e3328f685ba12bedc10315c5e24 (patch) | |
tree | 96da9b0a2f620588c827dc8efa77ae8f94850403 /_pytest/pastebin.py | |
parent | f5f924d293ed65ea62a66ad39d2c8074e575f2c4 (diff) | |
download | pytest-0253f7b8d5d66e3328f685ba12bedc10315c5e24.tar.gz |
remove all occurences of "__multicall__" on hook impls in pytest/*.
also simplify pytest_runtest_markereport hook in _pytest/skipping.py
while touching the code anyway.
Diffstat (limited to '_pytest/pastebin.py')
-rw-r--r-- | _pytest/pastebin.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/_pytest/pastebin.py b/_pytest/pastebin.py index cc9d0b5f0..4151fbf0d 100644 --- a/_pytest/pastebin.py +++ b/_pytest/pastebin.py @@ -1,5 +1,7 @@ """ submit failure or test session information to a pastebin service. """ +import pytest import py, sys +import tempfile class url: base = "http://bpaste.net" @@ -13,9 +15,8 @@ def pytest_addoption(parser): choices=['failed', 'all'], help="send failed|all info to bpaste.net pastebin service.") -def pytest_configure(__multicall__, config): - import tempfile - __multicall__.execute() +@pytest.mark.trylast +def pytest_configure(config): if config.option.pastebin == "all": config._pastebinfile = tempfile.TemporaryFile('w+') tr = config.pluginmanager.getplugin('terminalreporter') |