summaryrefslogtreecommitdiff
path: root/dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-15 17:34:22 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-15 17:59:06 +0100
commit720627c5a2848c60fbbf9518cc4a3babf4554b73 (patch)
tree2939957095b9e460bb84229e7e5fc66fdb668cec /dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch
parentb11c2f0c9f4c3cd273ec960a042a75f657467cde (diff)
downloadgentoo-720627c5a2848c60fbbf9518cc4a3babf4554b73.tar.gz
gentoo-720627c5a2848c60fbbf9518cc4a3babf4554b73.tar.bz2
gentoo-720627c5a2848c60fbbf9518cc4a3babf4554b73.zip
dev-python/lazy-object-proxy: Bump to 1.10.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch')
-rw-r--r--dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch b/dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch
new file mode 100644
index 000000000000..c7806c68bb7a
--- /dev/null
+++ b/dev-python/lazy-object-proxy/files/lazy-object-proxy-1.10.0-pure-tests.patch
@@ -0,0 +1,29 @@
+From 25decee2bd5a68d290dd3349aa9a72ce41b398b6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Fri, 15 Dec 2023 17:45:42 +0100
+Subject: [PATCH] Support SETUPPY_FORCE_PURE in tests
+
+Support testing without the C extension if SETUPPY_FORCE_PURE is set.
+This makes the test suite behavior consistent with setup.py behavior.
+---
+ tests/conftest.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 11d0379..2ba3209 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -1,3 +1,4 @@
++import os
+ import sys
+
+ import pytest
+@@ -19,7 +20,7 @@ class FakeModule:
+ try:
+ from lazy_object_proxy.cext import Proxy
+ except ImportError:
+- if PYPY:
++ if PYPY or os.environ.get('SETUPPY_FORCE_PURE'):
+ pytest.skip(reason='C Extension not available.')
+ else:
+ raise