From 5a23fe8dc94910a378bea33eb4d3075d0ee5aa52a59f2051da5c0fdbb0be8e9c Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 8 Sep 2024 16:44:18 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zdaemon?expand=0&rev=43 --- obs-timeout.patch | 82 ----------------------------------------------- 1 file changed, 82 deletions(-) delete mode 100644 obs-timeout.patch diff --git a/obs-timeout.patch b/obs-timeout.patch deleted file mode 100644 index 27f99e7..0000000 --- a/obs-timeout.patch +++ /dev/null @@ -1,82 +0,0 @@ -Index: zdaemon-4.3/src/zdaemon/tests/tests.py -=================================================================== ---- zdaemon-4.3.orig/src/zdaemon/tests/tests.py -+++ zdaemon-4.3/src/zdaemon/tests/tests.py -@@ -264,77 +264,6 @@ def test_log_rotation(): - """ - - --def test_start_test_program(): -- """ -- >>> write('t.py', -- ... ''' -- ... import time -- ... time.sleep(1) -- ... open('x', 'w').close() -- ... time.sleep(99) -- ... ''') -- -- >>> write('conf', -- ... ''' -- ... -- ... program %s t.py -- ... start-test-program cat x -- ... -- ... ''' % sys.executable) -- -- >>> import os -- -- >>> system("./zdaemon -Cconf start") -- . . -- daemon process started, pid=21446 -- -- >>> os.path.exists('x') -- True -- >>> os.remove('x') -- -- >>> system("./zdaemon -Cconf restart") -- . . . -- daemon process restarted, pid=19622 -- >>> os.path.exists('x') -- True -- -- >>> system("./zdaemon -Cconf stop") -- -- daemon process stopped -- """ -- -- --def test_start_timeout(): -- """ -- >>> write('t.py', -- ... ''' -- ... import time -- ... time.sleep(9) -- ... ''') -- -- >>> write('conf', -- ... ''' -- ... -- ... program %s t.py -- ... start-test-program cat x -- ... start-timeout 1 -- ... -- ... ''' % sys.executable) -- -- >>> import time -- >>> start = time.time() -- -- >>> system("./zdaemon -Cconf start") -- -- Program took too long to start -- Failed: 1 -- -- >>> system("./zdaemon -Cconf stop") -- -- daemon process stopped -- """ -- -- - def DAEMON_MANAGER_MODE_leak(): - """ - Zdaemon used an environment variable to flag that it's running in