File tree Expand file tree Collapse file tree 9 files changed +16
-16
lines changed Expand file tree Collapse file tree 9 files changed +16
-16
lines changed Original file line number Diff line number Diff line change
1
+ RELEASE_TYPE: patch
2
+
3
+ This patch ensures that we shorten tracebacks for tests which fail due
4
+ to inconsistent data generation between runs (i.e. raise ``Flaky ``).
Original file line number Diff line number Diff line change 13
13
#
14
14
# END HEADER
15
15
16
-
17
16
class HypothesisException (Exception ):
18
17
"""Generic parent class for exceptions thrown by Hypothesis."""
19
18
Original file line number Diff line number Diff line change 13
13
#
14
14
# END HEADER
15
15
16
-
17
16
def default_executor (function ): # pragma: nocover
18
17
raise NotImplementedError () # We don't actually use this any more
19
18
Original file line number Diff line number Diff line change 23
23
import hypothesis
24
24
from hypothesis .errors import (
25
25
DeadlineExceeded ,
26
+ Flaky ,
26
27
HypothesisException ,
27
28
MultipleFailures ,
28
29
StopTest ,
@@ -91,7 +92,7 @@ def get_trimmed_traceback(exception=None):
91
92
# was raised inside Hypothesis (and is not a MultipleFailures)
92
93
if hypothesis .settings .default .verbosity >= hypothesis .Verbosity .debug or (
93
94
is_hypothesis_file (traceback .extract_tb (tb )[- 1 ][0 ])
94
- and not isinstance (exception , MultipleFailures )
95
+ and not isinstance (exception , ( Flaky , MultipleFailures ) )
95
96
):
96
97
return tb
97
98
while tb is not None and (
Original file line number Diff line number Diff line change 13
13
#
14
14
# END HEADER
15
15
16
-
17
16
class IntervalSet :
18
17
def __init__ (self , intervals ):
19
18
self .intervals = tuple (intervals )
Original file line number Diff line number Diff line change 13
13
#
14
14
# END HEADER
15
15
16
-
17
16
class lazyformat :
18
17
"""A format string that isn't evaluated until it's needed."""
19
18
Original file line number Diff line number Diff line change 13
13
#
14
14
# END HEADER
15
15
16
-
17
16
class UniqueIdentifier :
18
17
"""A factory for sentinel objects with nice reprs."""
19
18
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ numpy==1.21.0
14
14
# via
15
15
# -r requirements/coverage.in
16
16
# pandas
17
- pandas==1.2.5
17
+ pandas==1.3.0
18
18
# via -r requirements/coverage.in
19
19
python-dateutil==2.8.1
20
20
# via pandas
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ bleach==3.3.0
35
35
# via readme-renderer
36
36
certifi==2021.5.30
37
37
# via requests
38
- cffi==1.14.5
38
+ cffi==1.14.6
39
39
# via cryptography
40
40
chardet==4.0.0
41
41
# via requests
@@ -107,7 +107,7 @@ idna==2.10
107
107
# via requests
108
108
imagesize==1.2.0
109
109
# via sphinx
110
- importlib-metadata==4.6.0
110
+ importlib-metadata==4.6.1
111
111
# via
112
112
# keyring
113
113
# twine
@@ -117,11 +117,11 @@ ipython==7.16.1
117
117
# via -r requirements/tools.in
118
118
ipython-genutils==0.2.0
119
119
# via traitlets
120
- isort==5.9.1
120
+ isort==5.9.2
121
121
# via shed
122
122
jedi==0.18.0
123
123
# via ipython
124
- jeepney==0.6 .0
124
+ jeepney==0.7 .0
125
125
# via
126
126
# keyring
127
127
# secretstorage
@@ -167,7 +167,7 @@ pickleshare==0.7.5
167
167
# via ipython
168
168
pip-tools==6.2.0
169
169
# via -r requirements/tools.in
170
- pkginfo==1.7.0
170
+ pkginfo==1.7.1
171
171
# via twine
172
172
pluggy==0.13.1
173
173
# via
@@ -213,15 +213,15 @@ pytz==2021.1
213
213
# via
214
214
# babel
215
215
# django
216
- pyupgrade==2.20 .0
216
+ pyupgrade==2.21 .0
217
217
# via shed
218
218
pyyaml==5.4.1
219
219
# via
220
220
# bandit
221
221
# libcst
222
222
readme-renderer==29.0
223
223
# via twine
224
- regex==2021.7.1
224
+ regex==2021.7.6
225
225
# via black
226
226
requests==2.25.1
227
227
# via
@@ -256,7 +256,7 @@ snowballstemmer==2.1.0
256
256
# sphinx
257
257
sortedcontainers==2.4.0
258
258
# via hypothesis (hypothesis-python/setup.py)
259
- sphinx==4.0.2
259
+ sphinx==4.0.3
260
260
# via
261
261
# -r requirements/tools.in
262
262
# sphinx-rtd-theme
@@ -294,7 +294,7 @@ toml==0.10.2
294
294
# tox
295
295
tox==3.23.1
296
296
# via -r requirements/tools.in
297
- tqdm==4.61.1
297
+ tqdm==4.61.2
298
298
# via twine
299
299
traitlets==4.3.3
300
300
# via
You can’t perform that action at this time.
0 commit comments