Browse Source

Tests passing

Ask Solem 12 years ago
parent
commit
1ef00c3be3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      celery/tests/concurrency/test_gevent.py

+ 2 - 0
celery/tests/concurrency/test_gevent.py

@@ -39,7 +39,9 @@ class test_gevent_patch(GeventCase):
     def test_is_patched(self):
         with mock_module(*gevent_modules):
             monkey_patched = []
+            import gevent
             from gevent import monkey
+            gevent.version_info = (1, 0, 0)
             prev_monkey_patch = monkey.patch_all
             monkey.patch_all = lambda: monkey_patched.append(True)
             prev_gevent = sys.modules.pop('celery.concurrency.gevent', None)