You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2024/04/16 17:26:17 UTC
(libcloud) branch dependabot/pip/pytest-8.0.2 updated (7267fc4f9 -> 6ba2819cc)
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a change to branch dependabot/pip/pytest-8.0.2
in repository https://gitbox.apache.org/repos/asf/libcloud.git
from 7267fc4f9 Additional changes to the DigitalOcean tests to avoid cross test pollution and related failures when running tests in parallel.
new 923a3aec2 For now, don't run problematic tests with coverage tox target.
new 6ba2819cc Try fixing problematic init_once tests.
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
libcloud/test/test_init.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(libcloud) 02/02: Try fixing problematic init_once tests.
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch dependabot/pip/pytest-8.0.2
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 6ba2819ccbadad5fe89984ea2cef8313ba432aae
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Tue Apr 16 19:25:27 2024 +0200
Try fixing problematic init_once tests.
---
libcloud/test/test_init.py | 3 ++-
tox.ini | 5 ++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/libcloud/test/test_init.py b/libcloud/test/test_init.py
index d35bf9c31..0bf18ea85 100644
--- a/libcloud/test/test_init.py
+++ b/libcloud/test/test_init.py
@@ -44,9 +44,10 @@ class TestUtils(unittest.TestCase):
# Reset debug level
reset_debug()
- # Reset paramiko log level
+ # Reset paramiko log level and handlers
if have_paramiko:
paramiko_logger = logging.getLogger("paramiko")
+ paramiko_logger.handlers = []
paramiko_logger.setLevel(logging.INFO)
@mock.patch.dict(os.environ, {"LIBCLOUD_DEBUG": ""}, clear=True)
diff --git a/tox.ini b/tox.ini
index abe1a57a1..a1dc82195 100644
--- a/tox.ini
+++ b/tox.ini
@@ -327,14 +327,13 @@ deps =
-r{toxinidir}/integration/storage/requirements.txt
commands = pytest --color=yes -rsx -vvv --capture=tee-sys -o log_cli=True --durations=10 integration/storage
-# NOTE: For now, we don't run problematic serial tests with coverage target
[testenv:coverage]
deps =
-r{toxinidir}/requirements-tests.txt
setenv =
CRYPTOGRAPHY_ALLOW_OPENSSL_102=1
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
- coverage run --source=libcloud -m pytest --benchmark-disable -m "not serial"
+ coverage run --source=libcloud -m pytest --benchmark-disable
[testenv:coverage-ci]
passenv =
@@ -347,7 +346,7 @@ deps =
setenv =
CRYPTOGRAPHY_ALLOW_OPENSSL_102=1
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
- coverage run --source=libcloud -m pytest --benchmark-disable -m "not serial"
+ coverage run --source=libcloud -m pytest --benchmark-disable
coverage xml
[testenv:isort]
(libcloud) 01/02: For now, don't run problematic tests with coverage tox target.
Posted by to...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch dependabot/pip/pytest-8.0.2
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 923a3aec2504fd033e0de0a5d6487b3ad98e1baa
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Tue Apr 16 19:23:22 2024 +0200
For now, don't run problematic tests with coverage tox target.
---
tox.ini | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tox.ini b/tox.ini
index a1dc82195..abe1a57a1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -327,13 +327,14 @@ deps =
-r{toxinidir}/integration/storage/requirements.txt
commands = pytest --color=yes -rsx -vvv --capture=tee-sys -o log_cli=True --durations=10 integration/storage
+# NOTE: For now, we don't run problematic serial tests with coverage target
[testenv:coverage]
deps =
-r{toxinidir}/requirements-tests.txt
setenv =
CRYPTOGRAPHY_ALLOW_OPENSSL_102=1
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
- coverage run --source=libcloud -m pytest --benchmark-disable
+ coverage run --source=libcloud -m pytest --benchmark-disable -m "not serial"
[testenv:coverage-ci]
passenv =
@@ -346,7 +347,7 @@ deps =
setenv =
CRYPTOGRAPHY_ALLOW_OPENSSL_102=1
commands = cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
- coverage run --source=libcloud -m pytest --benchmark-disable
+ coverage run --source=libcloud -m pytest --benchmark-disable -m "not serial"
coverage xml
[testenv:isort]