Skip to content

Commit 7252056

Browse files
authored
test(autojac): Fix test_get_leaf_tensors_empty_roots (#285)
* Replace set({}) by set()
1 parent 0b85205 commit 7252056

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/autojac/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_get_leaf_tensors_empty_roots():
129129
"""Tests that _get_leaf_tensors returns no leaves when roots is the empty set."""
130130

131131
leaves = _get_leaf_tensors(tensors=[], excluded=set())
132-
assert set(leaves) == set({})
132+
assert set(leaves) == set()
133133

134134

135135
def test_get_leaf_tensors_excluded_root():

0 commit comments

Comments
 (0)