python-gevent/gevent-opensuse-nocolor-tests.patch
Daniel Garcia fb3cdd58a0 Accepting request 1169642 from home:dgarcia:branches:devel:languages:python:Factory
- Add gh-113964-fix-tests-3.12.3.patch to tix tests with python 3.12.3
  (bsc#1223128)
- Drop upstream patches:
  * gevent-fix-unittest-returncode-py312-c1.patch
  * gevent-fix-unittest-returncode-py312-c2.patch
- Update to version 24.2.1:
  - Add support for Python patch releases 3.11.8 and 3.12.2, which
    changed internal details of threading.
  - Errors raised from subprocess.Popen may not have a filename set.
  - SSLSocket.recv_into and SSLSocket.read no longer require the
    buffer to implement len and now work with buffers whose size is
    not 1.
  - gh-108310: Fix CVE-2023-40217: Check for & avoid the ssl pre-close
    flaw.
  - Drop setuptools to a soft test dependency.
  - Drop support for very old versions of CFFI.
  - Update bundled c-ares from 1.19.1 to 1.26.0.
  - Locks created by gevent, but acquired from multiple different
    threads (not recommended), no longer spin to implement timeouts
    and interruptible blocking. Instead, they use the native
    functionality of the Python 3 lock. This may improve some
    scenarios. See issue #2013.

OBS-URL: https://build.opensuse.org/request/show/1169642
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=109
2024-04-22 10:14:55 +00:00

16 lines
552 B
Diff

Avoid colorization of test output in obs runners
Index: gevent-24.2.1/src/gevent/testing/util.py
===================================================================
--- gevent-24.2.1.orig/src/gevent/testing/util.py
+++ gevent-24.2.1/src/gevent/testing/util.py
@@ -98,6 +98,8 @@ def _color(what):
return _color_code(_colorscheme[what])
def _colorize(what, message, normal='normal'):
+ if os.environ.get("TEST_NOCOLOR", False):
+ return message
return _color(what) + message + _color(normal)
def log(message, *args, **kwargs):