Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-mocket for openSUSE:Factory 
checked in at 2023-10-24 20:07:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-mocket (Old)
 and      /work/SRC/openSUSE:Factory/.python-mocket.new.24901 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-mocket"

Tue Oct 24 20:07:52 2023 rev:28 rq:1119947 version:3.11.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-mocket/python-mocket.changes      
2023-05-13 17:17:28.054321150 +0200
+++ /work/SRC/openSUSE:Factory/.python-mocket.new.24901/python-mocket.changes   
2023-10-24 20:08:03.867885980 +0200
@@ -1,0 +2,6 @@
+Tue Oct 24 10:15:32 UTC 2023 - Daniel Garcia <[email protected]>
+
+- Run redis server on %check to fix redis tests that depends on a real
+  redis server running.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-mocket.spec ++++++
--- /var/tmp/diff_new_pack.pLK0bZ/_old  2023-10-24 20:08:04.295901541 +0200
+++ /var/tmp/diff_new_pack.pLK0bZ/_new  2023-10-24 20:08:04.299901686 +0200
@@ -57,6 +57,7 @@
 BuildRequires:  %{python_module sure}
 BuildRequires:  %{python_module xxhash}
 BuildRequires:  ca-certificates-mozilla
+BuildRequires:  redis
 %endif
 %python_subpackages
 
@@ -90,10 +91,15 @@
 # Ignore tests which are not supported on Python 3.6
 pytest_python3_ignore="--ignore tests/tests37 --ignore tests/tests38"
 %endif
-# Requires a running Redis server
-donttest="TrueRedisTestCase"
+
+%{_sbindir}/redis-server --version | grep ' v=7\.' && 
redis7args="--enable-debug-command yes --enable-module-command yes"
+%{_sbindir}/redis-server --port 6379 --save "" $redis7args &
+victims="$!"
+trap "kill $victims || true" EXIT
+sleep 2
+
 # Checks the ability to record a real request and response. Not available 
inside obs.
-donttest="$donttest or test_asyncio_record_replay"
+donttest="test_asyncio_record_replay"
 # The reference recording has different headers in this case
 %if %{pkg_vcmp python3-httpx < 0.23}
 donttest="$donttest or test_truesendall_with_dump_from_recording"

Reply via email to