From 7a9c38d882c0b899c9979d1d253f5ab754c910e5 Mon Sep 17 00:00:00 2001 From: Justin Mayer Date: Mon, 1 Jul 2019 12:50:49 +0200 Subject: [PATCH] Skip TestServer test on non-Linux platforms The os.mknod() call in the `test_get_path_that_exists` test causes an error on non-Linux platforms such as macOS and Windows. --- pelican/tests/test_server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pelican/tests/test_server.py b/pelican/tests/test_server.py index 508b75ff..8fd93245 100644 --- a/pelican/tests/test_server.py +++ b/pelican/tests/test_server.py @@ -1,4 +1,5 @@ import os +import sys from shutil import rmtree from tempfile import mkdtemp @@ -17,6 +18,7 @@ class MockServer(object): pass +@unittest.skipUnless(sys.platform.startswith("linux"), "requires Linux") class TestServer(unittest.TestCase): def setUp(self):