Prechádzať zdrojové kódy

dont bother covering this corner case

Conflicts:
	supervisor/process.py
Chris McDonough 10 rokov pred
rodič
commit
4069c24d4a
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      supervisor/process.py

+ 2 - 2
supervisor/process.py

@@ -472,8 +472,8 @@ class Subprocess:
             self.backoff = 0
             self.exitstatus = es
 
-            if self.state == ProcessStates.STARTING:
-                # XXX I dont know under which circumstances this
+            if self.state == ProcessStates.STARTING: # pragma: no cover
+                # XXX I don't know under which circumstances this
                 # happens, but in the wild, there is a transition that
                 # subverts the RUNNING state (directly from STARTING
                 # to EXITED), so we perform the correct transition