Browse Source

LimitedSet test not working on Windows

Ask Solem 11 years ago
parent
commit
4d0f6418d1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      celery/tests/utils/test_datastructures.py

+ 3 - 1
celery/tests/utils/test_datastructures.py

@@ -15,7 +15,7 @@ from celery.datastructures import (
 )
 from celery.five import items
 
-from celery.tests.case import Case, WhateverIO
+from celery.tests.case import Case, WhateverIO, SkipTest
 
 
 class Object(object):
@@ -169,6 +169,8 @@ class test_ExceptionInfo(Case):
 class test_LimitedSet(Case):
 
     def test_add(self):
+        if sys.platform == 'win32':
+            raise SkipTest('Not working properly on Windows')
         s = LimitedSet(maxlen=2)
         s.add('foo')
         s.add('bar')