Skip to content

Commit 1370a7a

Browse files
committed
test(hooks): disable writing test failures to file
1 parent 4608817 commit 1370a7a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/integration/conftest.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
conf.read(root_path + "/config.ini")
1212

1313

14-
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
15-
def pytest_runtest_makereport(item, call):
16-
# execute all other hooks to obtain the report object
17-
outcome = yield
18-
rep = outcome.get_result()
19-
20-
# we only look at actual failing test calls, not setup/teardown
21-
if rep.when == "call" and rep.failed:
22-
mode = "a" if os.path.exists("failures") else "w"
23-
with open("failures", mode) as f:
24-
f.write(rep.longreprtext + "\n")
14+
# @pytest.hookimpl(tryfirst=True, hookwrapper=True)
15+
# def pytest_runtest_makereport(item, call):
16+
# # execute all other hooks to obtain the report object
17+
# outcome = yield
18+
# rep = outcome.get_result()
19+
#
20+
# # we only look at actual failing test calls, not setup/teardown
21+
# if rep.when == "call" and rep.failed:
22+
# mode = "a" if os.path.exists("failures") else "w"
23+
# with open("failures", mode) as f:
24+
# f.write(rep.longreprtext + "\n")
2525

2626

2727
def _get_default_connection_args():

0 commit comments

Comments
 (0)