@@ -44,8 +44,8 @@ If you run this for the first time you will see two failures::
44
44
45
45
$ py.test -q
46
46
.................F.......F........................
47
- ================================= FAILURES ========================= ========
48
- _______________________________ test_num[17] _______________________________
47
+ ======= FAILURES ========
48
+ _______ test_num[17] ________
49
49
50
50
i = 17
51
51
@@ -56,7 +56,7 @@ If you run this for the first time you will see two failures::
56
56
E Failed: bad luck
57
57
58
58
test_50.py:6: Failed
59
- _______________________________ test_num[25] _______________________________
59
+ _______ test_num[25] ________
60
60
61
61
i = 25
62
62
@@ -67,21 +67,21 @@ If you run this for the first time you will see two failures::
67
67
E Failed: bad luck
68
68
69
69
test_50.py:6: Failed
70
- 2 failed, 48 passed in 0.04 seconds
70
+ 2 failed, 48 passed in 0.12 seconds
71
71
72
72
If you then run it with ``--lf ``::
73
73
74
74
$ py.test --lf
75
- =========================== test session starts ==================== ========
76
- platform linux2 -- Python 2.7.6 , pytest-2.7.3.dev428+ng79d22bf.d20150916 , py-1.4.30, pluggy-0.3.0
75
+ ======= test session starts ========
76
+ platform linux2 -- Python 2.7.10 , pytest-2.8.0 , py-1.4.30, pluggy-0.3.1
77
77
run-last-failure: rerun last 2 failures
78
- rootdir: /tmp/doc-exec-94 , inifile:
78
+ rootdir: $REGENDOC_TMPDIR , inifile:
79
79
collected 50 items
80
80
81
81
test_50.py FF
82
82
83
- ================================= FAILURES ========================= ========
84
- _______________________________ test_num[17] _______________________________
83
+ ======= FAILURES ========
84
+ _______ test_num[17] ________
85
85
86
86
i = 17
87
87
@@ -92,7 +92,7 @@ If you then run it with ``--lf``::
92
92
E Failed: bad luck
93
93
94
94
test_50.py:6: Failed
95
- _______________________________ test_num[25] _______________________________
95
+ _______ test_num[25] ________
96
96
97
97
i = 25
98
98
@@ -103,7 +103,7 @@ If you then run it with ``--lf``::
103
103
E Failed: bad luck
104
104
105
105
test_50.py:6: Failed
106
- ================= 2 failed, 48 deselected in 0.01 seconds ========== ========
106
+ ======= 2 failed, 48 deselected in 0.12 seconds ========
107
107
108
108
You have run only the two failing test from the last run, while 48 tests have
109
109
not been run ("deselected").
@@ -113,16 +113,16 @@ previous failures will be executed first (as can be seen from the series
113
113
of ``FF `` and dots)::
114
114
115
115
$ py.test --ff
116
- =========================== test session starts ==================== ========
117
- platform linux2 -- Python 2.7.6 , pytest-2.7.3.dev428+ng79d22bf.d20150916 , py-1.4.30, pluggy-0.3.0
116
+ ======= test session starts ========
117
+ platform linux2 -- Python 2.7.10 , pytest-2.8.0 , py-1.4.30, pluggy-0.3.1
118
118
run-last-failure: rerun last 2 failures first
119
- rootdir: /tmp/doc-exec-94 , inifile:
119
+ rootdir: $REGENDOC_TMPDIR , inifile:
120
120
collected 50 items
121
121
122
122
test_50.py FF................................................
123
123
124
- ================================= FAILURES ========================= ========
125
- _______________________________ test_num[17] _______________________________
124
+ ======= FAILURES ========
125
+ _______ test_num[17] ________
126
126
127
127
i = 17
128
128
@@ -133,7 +133,7 @@ of ``FF`` and dots)::
133
133
E Failed: bad luck
134
134
135
135
test_50.py:6: Failed
136
- _______________________________ test_num[25] _______________________________
136
+ _______ test_num[25] ________
137
137
138
138
i = 25
139
139
@@ -144,7 +144,7 @@ of ``FF`` and dots)::
144
144
E Failed: bad luck
145
145
146
146
test_50.py:6: Failed
147
- =================== 2 failed, 48 passed in 0.03 seconds ============ ========
147
+ ======= 2 failed, 48 passed in 0.12 seconds ========
148
148
149
149
.. _`config.cache` :
150
150
@@ -179,8 +179,8 @@ of the sleep::
179
179
180
180
$ py.test -q
181
181
F
182
- ================================= FAILURES ========================= ========
183
- ______________________________ test_function _______________________________
182
+ ======= FAILURES ========
183
+ _______ test_function ________
184
184
185
185
mydata = 42
186
186
@@ -189,15 +189,15 @@ of the sleep::
189
189
E assert 42 == 23
190
190
191
191
test_caching.py:14: AssertionError
192
- 1 failed in 5.41 seconds
192
+ 1 failed in 0.12 seconds
193
193
194
194
If you run it a second time the value will be retrieved from
195
195
the cache and this will be quick::
196
196
197
197
$ py.test -q
198
198
F
199
- ================================= FAILURES ========================= ========
200
- ______________________________ test_function _______________________________
199
+ ======= FAILURES ========
200
+ _______ test_function ________
201
201
202
202
mydata = 42
203
203
@@ -206,7 +206,7 @@ the cache and this will be quick::
206
206
E assert 42 == 23
207
207
208
208
test_caching.py:14: AssertionError
209
- 1 failed in 0.01 seconds
209
+ 1 failed in 0.12 seconds
210
210
211
211
See the `cache-api `_ for more details.
212
212
@@ -218,15 +218,15 @@ You can always peek at the content of the cache using the
218
218
``--cache-clear `` command line option::
219
219
220
220
$ py.test --cache-clear
221
- =========================== test session starts ==================== ========
222
- platform linux2 -- Python 2.7.6 , pytest-2.7.3.dev428+ng79d22bf.d20150916 , py-1.4.30, pluggy-0.3.0
223
- rootdir: /tmp/doc-exec-94 , inifile:
221
+ ======= test session starts ========
222
+ platform linux2 -- Python 2.7.10 , pytest-2.8.0 , py-1.4.30, pluggy-0.3.1
223
+ rootdir: $REGENDOC_TMPDIR , inifile:
224
224
collected 1 items
225
225
226
226
test_caching.py F
227
227
228
- ================================= FAILURES ========================= ========
229
- ______________________________ test_function _______________________________
228
+ ======= FAILURES ========
229
+ _______ test_function ________
230
230
231
231
mydata = 42
232
232
@@ -235,7 +235,7 @@ You can always peek at the content of the cache using the
235
235
E assert 42 == 23
236
236
237
237
test_caching.py:14: AssertionError
238
- ========================= 1 failed in 5.41 seconds ================= ========
238
+ ======= 1 failed in 0.12 seconds ========
239
239
240
240
Clearing Cache content
241
241
-------------------------------
0 commit comments