diff options
| author | Michał Górny <mgorny@gentoo.org> | 2024-06-20 17:12:23 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2024-06-20 17:20:06 +0200 |
| commit | bf06b7b9ea6b606bd4080deab9526d8147dd64d7 (patch) | |
| tree | ad3f01125d226397bbbf8f382b2e2d780c0dad59 /dev-python/apache-libcloud/files | |
| parent | 1862dab667e65f41d10080f17d52349b13863b38 (diff) | |
| download | gentoo-bf06b7b9ea6b606bd4080deab9526d8147dd64d7.tar.gz gentoo-bf06b7b9ea6b606bd4080deab9526d8147dd64d7.tar.bz2 gentoo-bf06b7b9ea6b606bd4080deab9526d8147dd64d7.zip | |
dev-python/apache-libcloud: Fix tests
Closes: https://bugs.gentoo.org/931233
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/apache-libcloud/files')
| -rw-r--r-- | dev-python/apache-libcloud/files/apache-libcloud-3.8.0-pytest-8.2.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-python/apache-libcloud/files/apache-libcloud-3.8.0-pytest-8.2.patch b/dev-python/apache-libcloud/files/apache-libcloud-3.8.0-pytest-8.2.patch new file mode 100644 index 000000000000..03917b0dac75 --- /dev/null +++ b/dev-python/apache-libcloud/files/apache-libcloud-3.8.0-pytest-8.2.patch @@ -0,0 +1,25 @@ +From 0b69d0bf23b6c2edb1e2002f47ff2df0080e96d9 Mon Sep 17 00:00:00 2001 +From: Steve Kowalik <steven@wedontsleep.org> +Date: Thu, 6 Jun 2024 12:25:15 +1000 +Subject: [PATCH] Mark MockHttp as not for collection by pytest + +pytest 8.2.0 contains a regression that will collect non-test classes, +so as to be explicit about it, mark MockHttp (and therefore all of its +children classes) as not to be collected. +--- + libcloud/test/__init__.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libcloud/test/__init__.py b/libcloud/test/__init__.py +index d45c82c84d..d0da40c74a 100644 +--- a/libcloud/test/__init__.py ++++ b/libcloud/test/__init__.py +@@ -97,6 +97,8 @@ class MockHttp(LibcloudConnection): + + (int status, str body, dict headers, str reason) + """ ++ # pytest may collect this class, and we don't need or want that ++ __test__ = False + + type = None + use_param = None # will use this param to namespace the request function |
