#4189 Silence test warnings
Closed 7 months ago by tkopecek. Opened 7 months ago by tkopecek.
tkopecek/koji issue4188  into  master

file modified
+8 -2
@@ -1844,7 +1844,10 @@ 

          sync = threading.Event()

          def do_rmtree(dirname):

              sync.wait()

-             koji.util.rmtree(dirname)

+             with self.assertWarns(DeprecationWarning):

+                 # DeprecationWarning: This process is multi-threaded,

+                 # use of fork() may lead to deadlocks in the child.

+                 koji.util.rmtree(dirname)

  

          threads = []

          for d in dirs:
@@ -1870,7 +1873,10 @@ 

          sync = threading.Event()

          def do_rmtree(dirname):

              sync.wait()

-             koji.util.rmtree(dirname)

+             with self.assertWarns(DeprecationWarning):

+                 # DeprecationWarning: This process is multi-threaded,

+                 # use of fork() may lead to deadlocks in the child.

+                 koji.util.rmtree(dirname)

  

          threads = []

          for n in range(3):

Pull-Request has been closed by tkopecek

7 months ago
Metadata