From c9a1fc38c16ee6727c26e7964b641678237612d089be97f1a473f0bd306e5191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 30 Apr 2020 08:01:45 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-daemonize?expand=0&rev=11 --- no-python2.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/no-python2.patch b/no-python2.patch index 8d91706..ad1b348 100644 --- a/no-python2.patch +++ b/no-python2.patch @@ -15,7 +15,7 @@ Index: daemonize-2.5.0/tests/test.py def setUp(self): self.pidfile = mkstemp()[1] - os.system("python tests/daemon_sigterm.py %s" % self.pidfile) -+ os.system(sys.executable + " tests/daemon_sigterm.py %s" % self.pidfile) ++ os.system("%s tests/daemon_sigterm.py %s" % (sys.executable, self.pidfile)) sleep(.1) def tearDown(self): @@ -24,7 +24,7 @@ Index: daemonize-2.5.0/tests/test.py self.pidfile = mkstemp()[1] print("First daemonize process started") - os.system("python tests/daemon_sigterm.py %s" % self.pidfile) -+ os.system(sys.executable + " tests/daemon_sigterm.py %s" % self.pidfile) ++ os.system("%s tests/daemon_sigterm.py %s" % (sys.executable, self.pidfile)) sleep(.1) def tearDown(self): @@ -42,7 +42,7 @@ Index: daemonize-2.5.0/tests/test.py self.pidfile = mkstemp()[1] self.logfile = mkstemp()[1] - os.system("python tests/daemon_keep_fds.py %s %s" % (self.pidfile, self.logfile)) -+ os.system(sys.executable + " tests/daemon_keep_fds.py %s %s" % (self.pidfile, self.logfile)) ++ os.system("%s tests/daemon_keep_fds.py %s %s" % (sys.executable, self.pidfile, self.logfile)) sleep(1) def tearDown(self):