- Clean obsolete old python and old distribution directives * Only 15.5+ with the sle15 python module and Tumbleweed have the required Python 3.8+ * Drop fix-no-return-in-nonvoid-function.patch - Update test suite execution * Use -u-network flag to disable network tests * Add gevent-opensuse-nocolor-tests.patch -- Avoid colorization of test output in obs runners * Add gevent-fix-unittest-returncode-py312-c1.patch and gevent-fix-unittest-returncode-py312-c2.patch gh#gevent/gevent#2012 OBS-URL: https://build.opensuse.org/request/show/1138131 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gevent?expand=0&rev=107
16 lines
552 B
Diff
16 lines
552 B
Diff
Avoid colorization of test output in obs runners
|
|
|
|
Index: gevent-23.9.1/src/gevent/testing/util.py
|
|
===================================================================
|
|
--- gevent-23.9.1.orig/src/gevent/testing/util.py
|
|
+++ gevent-23.9.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):
|