Explorar o código

Skips test on Windows, that does not apply to that platform

Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
2c403129a6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      celery/tests/test_bin/test_celeryd.py

+ 3 - 0
celery/tests/test_bin/test_celeryd.py

@@ -171,6 +171,9 @@ class test_Worker(unittest.TestCase):
         self.assertEqual(worker1.loglevel, 0xFFFF)
 
     def test_warns_if_running_as_privileged_user(self):
+        app = app_or_default()
+        if app.IS_WINDOWS:
+            raise SkipTest("Not applicable on Windows")
         warnings.resetwarnings()
 
         def geteuid():