summaryrefslogtreecommitdiff
path: root/lib/spack/external/_pytest/pastebin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/external/_pytest/pastebin.py')
-rw-r--r--lib/spack/external/_pytest/pastebin.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spack/external/_pytest/pastebin.py b/lib/spack/external/_pytest/pastebin.py
index 9f1cf90637..9d689819f0 100644
--- a/lib/spack/external/_pytest/pastebin.py
+++ b/lib/spack/external/_pytest/pastebin.py
@@ -1,4 +1,6 @@
""" submit failure or test session information to a pastebin service. """
+from __future__ import absolute_import, division, print_function
+
import pytest
import sys
import tempfile
@@ -7,9 +9,9 @@ import tempfile
def pytest_addoption(parser):
group = parser.getgroup("terminal reporting")
group._addoption('--pastebin', metavar="mode",
- action='store', dest="pastebin", default=None,
- choices=['failed', 'all'],
- help="send failed|all info to bpaste.net pastebin service.")
+ action='store', dest="pastebin", default=None,
+ choices=['failed', 'all'],
+ help="send failed|all info to bpaste.net pastebin service.")
@pytest.hookimpl(trylast=True)
@@ -95,4 +97,4 @@ def pytest_terminal_summary(terminalreporter):
s = tw.stringio.getvalue()
assert len(s)
pastebinurl = create_new_paste(s)
- tr.write_line("%s --> %s" %(msg, pastebinurl))
+ tr.write_line("%s --> %s" % (msg, pastebinurl))