Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Ferrand <adferrand@users.noreply.github.com>2019-01-18 00:02:35 +0300
committerBrad Warren <bmw@users.noreply.github.com>2019-01-18 00:02:35 +0300
commit835f4b9271b7b5ee3cb3f54254a015e28f7bffdc (patch)
tree97f7078d3e700a8aad4e3992a31fa038bc96d5da /pytest.ini
parent6f388945cde7e6ec68a83378dea9c6122b86d2c9 (diff)
Allow to execute a tox target without pinned dependencies (#6590)
This PR passes the CERTBOT_NO_PIN environment variable to the unit tests tox envs. By setting CERTBOT_NO_PIN to 1 before executing a given tox env, certbot dependencies will be installed at their latest version instead of the usual pinned version. I also moved the unpin logic one layer below to allow it to be used potentially more widely, and avoid unnecessary merging constraints operation in this case. As warnings are errors now, latest versions of Python will break now the tests, because collections launch a warning when some classes are imported from collections instead of collections.abc. Certbot code is patched, and warning is ignored for now, because a lot of third party libraries still depend on this behavior. * Allow to execute a tox target without pinned dependencies * Correct lint * Retrigger build. * Remove debug code * Added test against unpinned dependencies from test-everything-unpinned-dependencies branch * Remove duplicated assertion to pass TRAVIS and APPVEYOR in default tox environment.
Diffstat (limited to 'pytest.ini')
-rw-r--r--pytest.ini10
1 files changed, 7 insertions, 3 deletions
diff --git a/pytest.ini b/pytest.ini
index 9a5807f34..8f009045c 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -3,10 +3,14 @@
# directly.
[pytest]
addopts = --numprocesses auto --pyargs
-# ResourceWarnings are ignored as errors, since they're raised at close
-# decodestring: https://github.com/rthalley/dnspython/issues/338
-# ignore our own TLS-SNI-01 warning
+# In general, all warnings are treated as errors. Here are the exceptions:
+# 1- decodestring: https://github.com/rthalley/dnspython/issues/338
+# 2- ignore our own TLS-SNI-01 warning
+# 3- ignore warn for importing abstract classes from collections instead of collections.abc,
+# too much third party dependencies are still relying on this behavior,
+# but it should be corrected to allow Certbot compatiblity with Python >= 3.8
filterwarnings =
error
ignore:decodestring:DeprecationWarning
ignore:TLS-SNI-01:DeprecationWarning
+ ignore:.*collections\.abc:DeprecationWarning