Skip to content

Commit 749a3b4

Browse files
Oops, check types correctly.
1 parent a04e410 commit 749a3b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pyff/builtins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def fork(req: Plumbing.Request, *opts):
301301
def _any(lst, d):
302302
for x in lst:
303303
if x in d:
304-
if d is dict:
304+
if isinstance(d, dict):
305305
return d[x]
306306
else:
307307
return True

src/pyff/test/test_md_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_load_and_query(self):
133133
data = r.json()
134134
assert data is not None and len(data) == 1
135135
info = data[0]
136-
assert info is dict
136+
assert isinstance(info, dict)
137137
assert info['title'] == 'NORDUnet'
138138
assert 'nordu.net' in info['scope']
139139

0 commit comments

Comments
 (0)