@@ -79,7 +79,7 @@ def import_all_modules(name=__name__, file=__file__,
if os.environ.get('COVER_ALL_MODULES') or '--with-coverage3' in sys.argv:
- from celery.tests.utils import catch_warnings
- with catch_warnings(record=True):
+ import warnings
+ with warnings.catch_warnings(record=True):
import_all_modules()
warnings.resetwarnings()