Skip to content

Commit

Permalink
Merge pull request #170 from mih/six
Browse files Browse the repository at this point in the history
Make six obsolete
  • Loading branch information
mih authored Feb 2, 2022
2 parents c5939d5 + abfbb7e commit 4e46d2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions datalad_container/tests/test_run.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import os
import os.path as op

from six import text_type

from datalad.api import Dataset
from datalad.api import clone
from datalad.api import create
Expand Down Expand Up @@ -48,7 +46,7 @@ def test_run_mispecified(path):
# Abort if no containers exist.
with assert_raises(ValueError) as cm:
ds.containers_run("doesn't matter")
assert_in("No known containers", text_type(cm.exception))
assert_in("No known containers", str(cm.exception))

# Abort if more than one container exists but no container name is
# specified.
Expand All @@ -57,12 +55,12 @@ def test_run_mispecified(path):

with assert_raises(ValueError) as cm:
ds.containers_run("doesn't matter")
assert_in("explicitly specify container", text_type(cm.exception))
assert_in("explicitly specify container", str(cm.exception))

# Abort if unknown container is specified.
with assert_raises(ValueError) as cm:
ds.containers_run("doesn't matter", container_name="ghost")
assert_in("Container selection impossible", text_type(cm.exception))
assert_in("Container selection impossible", str(cm.exception))


@with_tree(tree={"i.img": "doesn't matter"})
Expand Down Expand Up @@ -144,7 +142,7 @@ def assert_no_change(res, path):
# When running, we don't discover containers in subdatasets
with assert_raises(ValueError) as cm:
super_ds.containers_run(cmd)
assert_in("No known containers", text_type(cm.exception))
assert_in("No known containers", str(cm.exception))
# ... unless we need to specify the name
res = super_ds.containers_run(cmd, container_name="sub/mycontainer")
# container becomes an 'input' for `run` -> get request (needed this time)
Expand Down
1 change: 0 additions & 1 deletion requirements-devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ nose
coverage
sphinx
sphinx_rtd_theme
six

0 comments on commit 4e46d2d

Please sign in to comment.