Skip to content

Commit cc6a3d7

Browse files
authored
[ENH] Enable DeprecationWarning , PendingDeprecationWarning and FutureWarning when running pytest (#1912)
This PR enables seeing debuggable `DeprecationWarning` when running the tests with pytest, no need to specify a flag for warnings. Related to #1764
1 parent e8c8b46 commit cc6a3d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,8 @@ filterwarnings = [
220220
"ignore:The number of training samples \\(\\d+\\) is smaller than the logging interval Trainer\\(:UserWarning",
221221
"ignore:The dataloader, [\\_\\s]+ \\d+, does not have many workers which may be a bottleneck.:UserWarning",
222222
"ignore:Consider increasing the value of the `num_workers` argument`:UserWarning",
223+
"default::DeprecationWarning",
224+
"default::PendingDeprecationWarning",
225+
"default::FutureWarning",
223226
"ignore::UserWarning"
224227
]

0 commit comments

Comments
 (0)