From 190d9a7319e155ee72918e1cda714e327b27ddc4 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Mon, 4 Jan 2021 12:13:53 -0500 Subject: [PATCH] Skip the pidfile test on Windows where there are no pidfiles --- src/allmydata/test/cli/test_run.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/allmydata/test/cli/test_run.py b/src/allmydata/test/cli/test_run.py index e4bcdfbcd..84befafc1 100644 --- a/src/allmydata/test/cli/test_run.py +++ b/src/allmydata/test/cli/test_run.py @@ -6,12 +6,19 @@ from six.moves import ( StringIO, ) +from testtools import ( + skipIf, +) + from testtools.matchers import ( Contains, Equals, HasLength, ) +from twisted.python.runtime import ( + platform, +) from twisted.python.filepath import ( FilePath, ) @@ -134,6 +141,7 @@ class RunTests(SyncTestCase): """ Tests for ``run``. """ + @skipIf(platform.isWindows(), "There are no PID files on Windows.") def test_non_numeric_pid(self): """ If the pidfile exists but does not contain a numeric value, a complaint to