File: remove-broken-test.patch

package info (click to toggle)
python-daemonize 2.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 200 kB
  • sloc: python: 416; makefile: 32
file content (24 lines) | stat: -rw-r--r-- 867 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Remove broken test
 This test looks like broken.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2021-12-30

--- python-daemonize-2.5.0.orig/tests/test.py
+++ python-daemonize-2.5.0/tests/test.py
@@ -25,15 +25,6 @@ class DaemonizeTest(unittest.TestCase):
         os.system("kill `cat %s`" % self.pidfile)
         sleep(.1)
 
-    def test_is_working(self):
-        sleep(10)
-        proc = subprocess.Popen("ps ax | awk '{print $1}' | grep `cat %s`" % self.pidfile,
-                                shell=True, stdout=subprocess.PIPE)
-        ps_pid = proc.communicate()[0].decode()
-        with open(self.pidfile, "r") as pidfile:
-            pid = pidfile.read()
-        self.assertEqual("%s\n" % pid, ps_pid)
-
     def test_pidfile_presense(self):
         sleep(10)
         self.assertTrue(os.path.isfile(self.pidfile))