Skip to content

Commit dd4db81

Browse files
committed
Ignore a specific distutils warning
Also add comments to remember to turn warnings into errors when running tests on Python or Django new versions.
1 parent 315630b commit dd4db81

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
build:
1313

14+
# When testing new Python or Django versions, one should use the
15+
# filterwarnings definition of setup.cfg to turn deprecation warnings
16+
# into errors.
1417
strategy:
1518
matrix:
1619
include:

setup.cfg

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@ testpaths =
6060
django_genericfilters/tests
6161
demoproject/tests.py
6262
filterwarnings =
63-
error
63+
# Uncomment below when testing a new version of Python or Django so that
64+
# DeprecationWarnings can be treated as errors
65+
# error
66+
ignore:.*distutils Version classes are deprecated.*:DeprecationWarning
6467

6568
DJANGO_SETTINGS_MODULE = demoproject.settings
6669

0 commit comments

Comments
 (0)