Pārlūkot izejas kodu

Add link to original mask_modules code snippet (thanks runeh!)

Ask Solem 15 gadi atpakaļ
vecāks
revīzija
2f0d37dd12
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      celery/tests/utils.py

+ 3 - 0
celery/tests/utils.py

@@ -61,6 +61,9 @@ def skip_unless(predicate, reason):
     return skip_if(not predicate, reason)
 
 
+
+# Taken from
+# http://bitbucket.org/runeh/snippets/src/tip/missing_modules.py
 @contextmanager
 def mask_modules(*modnames):
     """Ban some modules from being importable inside the context