diff --git a/services/datalad/tests/conftest.py b/services/datalad/tests/conftest.py index 738106257..87469214d 100644 --- a/services/datalad/tests/conftest.py +++ b/services/datalad/tests/conftest.py @@ -1,3 +1,4 @@ +import sys import string import os import json @@ -16,6 +17,15 @@ import datalad_service.tasks.publish +# boto has a hopelessly outdated vendored version of six that breaks +# pytest imports. Until datalad removes boto, purge the six importer. +boto_importers = [ + importer for importer in sys.meta_path + if importer.__module__ == 'boto.vendored.six' +] +for importer in boto_importers: + sys.meta_path.remove(importer) + # Test dataset to create DATASET_ID = 'ds000001' SNAPSHOT_ID = '000001'