Skip to content

Commit 0d61163

Browse files
committed
Pacify flake8
1 parent b808152 commit 0d61163

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/hermes_test/model/types/test_ld_context.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def test_codemeta_prefix(ctx):
3636

3737
@pytest.mark.xfail(
3838
raises=AssertionError,
39-
reason="Currently, the wrong CodeMeta IRI is used in the implementation, so expanding terms doesn't work correctly, "
40-
"see https://github.com/softwarepub/hermes/issues/419",
39+
reason="Currently, the wrong CodeMeta IRI is used in the implementation, so expanding terms doesn't work correctly,"
40+
" see https://github.com/softwarepub/hermes/issues/419",
4141
)
4242
@pytest.mark.parametrize("compacted", ["maintainer", (None, "maintainer")])
4343
def test_get_item_from_default_vocabulary_pass(ctx, compacted):
@@ -141,7 +141,7 @@ def test_get_item_from_expanded_pass(ctx, expanded):
141141
"""
142142
Tests that getting items via their fully expanded terms works as expected.
143143
"""
144-
with pytest.raises(Exception) as e:
144+
with pytest.raises(Exception):
145145
assert ctx[expanded] == expanded
146146
raise NotImplementedError
147147

@@ -150,7 +150,7 @@ def test_get_item_from_expanded_fail(ctx):
150150
"""
151151
Tests that context raises on unsupported expanded term input.
152152
"""
153-
with pytest.raises(HermesContextError) as e:
153+
with pytest.raises(HermesContextError):
154154
ctx["https://foo.bar/baz"]
155155

156156

0 commit comments

Comments
 (0)