Skip to content

Commit 8772261

Browse files
committed
# Conflicts: # .coveragerc
2 parents c8df3d7 + 56cdf46 commit 8772261

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ omit =
88
*/_itertools.py
99
exercises.py
1010
*/pip-run-*
11+
disable_warnings =
12+
couldnt-parse
1113

1214
[report]
1315
show_missing = True

pytest.ini

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[pytest]
22
norecursedirs=dist build .tox .eggs
33
addopts=--doctest-modules
4-
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
54
filterwarnings=
5+
## upstream
6+
67
# Ensure ResourceWarnings are emitted
78
default::ResourceWarning
89

@@ -18,3 +19,14 @@ filterwarnings=
1819
ignore:<class 'pytest_flake8.Flake8Item'> is not using a cooperative constructor:pytest.PytestDeprecationWarning
1920
ignore:The \(fspath. py.path.local\) argument to Flake8Item is deprecated.:pytest.PytestDeprecationWarning
2021
ignore:Flake8Item is an Item subclass and should not be a collector:pytest.PytestWarning
22+
23+
# shopkeep/pytest-black#67
24+
ignore:'encoding' argument not specified::pytest_black
25+
26+
# realpython/pytest-mypy#152
27+
ignore:'encoding' argument not specified::pytest_mypy
28+
29+
# python/cpython#100750
30+
ignore:'encoding' argument not specified::platform
31+
32+
## end upstream

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ toxworkdir={env:TOX_WORK_DIR:.tox}
88

99
[testenv]
1010
deps =
11+
setenv =
12+
PYTHONWARNDEFAULTENCODING = 1
1113
commands =
1214
pytest {posargs}
1315
passenv =
1416
HOME
1517
usedevelop = True
16-
extras = testing
18+
extras =
19+
testing
1720

1821

1922
[testenv:docs]

0 commit comments

Comments
 (0)