Skip to content

Commit

Permalink
TEST: Neutralize boto.vendored.six._SixMetaPathImporter
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Apr 3, 2024
1 parent 4e9e866 commit 59d354d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions services/datalad/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import string
import os
import json
Expand All @@ -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'
Expand Down

0 comments on commit 59d354d

Please sign in to comment.