From 8d03190e2562698b7b1f2a6f735cd152134e371b Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 16 May 2023 17:36:43 -0400 Subject: [PATCH] Disable tests by default in RHEL builds RHEL does not include the test dependencies. This is based on c9s: https://gitlab.com/redhat/centos-stream/rpms/python-requests/-/commit/488327aa0f28e74b9e90c64f3aed8f5a8f1d82fa --- python-requests.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index 662f94e..8a67450 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,6 +1,7 @@ -%if 0%{?_module_build} +%if 0%{?_module_build} || 0%{?rhel} # Don't run tests on module-build for now # See: https://bugzilla.redhat.com/show_bug.cgi?id=1450608 +# RHEL does not include the test dependencies %bcond_with tests %else # When bootstrapping Python, we cannot test this yet