Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 98e9c02

Browse files
author
Nicolas Dietrich
committed
Only enable capture (=mute) pytest in py.test_run_all
If capture is enabled, ipdb doesn't work in tests. Therefore we only capture output in the py.test_run_all script.
1 parent 4359f22 commit 98e9c02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildout.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ recipe = collective.recipe.template
9999
input = inline:
100100
#!/bin/bash
101101
cd ${buildout:directory}
102-
bin/py.test --timeout=60 src/adhocracy src/adhocracy_sample tests "$@"
102+
bin/py.test --capture=fd --timeout=60 src/adhocracy src/adhocracy_sample tests "$@"
103103
output = ${buildout:bin-directory}/py.test_run_all
104104
mode = 755
105105

etc/pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
addopts =
33
--doctest-glob='*.rst'
44
--tb=native
5-
--capture=fd
5+
--capture=no
66
--splinter-implicit-wait=1
77
--splinter-speed=0
88
--splinter-socket-timeout=120

0 commit comments

Comments
 (0)