Skip the pidfile test on Windows where there are no pidfiles

This commit is contained in:
Jean-Paul Calderone 2021-01-04 12:13:53 -05:00
parent 9958236c31
commit 190d9a7319

View File

@ -6,12 +6,19 @@ from six.moves import (
StringIO, StringIO,
) )
from testtools import (
skipIf,
)
from testtools.matchers import ( from testtools.matchers import (
Contains, Contains,
Equals, Equals,
HasLength, HasLength,
) )
from twisted.python.runtime import (
platform,
)
from twisted.python.filepath import ( from twisted.python.filepath import (
FilePath, FilePath,
) )
@ -134,6 +141,7 @@ class RunTests(SyncTestCase):
""" """
Tests for ``run``. Tests for ``run``.
""" """
@skipIf(platform.isWindows(), "There are no PID files on Windows.")
def test_non_numeric_pid(self): def test_non_numeric_pid(self):
""" """
If the pidfile exists but does not contain a numeric value, a complaint to If the pidfile exists but does not contain a numeric value, a complaint to