Skip to content

Commit

Permalink
Pass make format and make commit-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BFAnas committed Aug 9, 2023
1 parent c685498 commit 5a1266c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/base/test_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ def test_custom_key():
np.array([False]),
'returns':
np.array([74.70343082]),
'info':
'info':
Batch(),
'policy':
Batch(),
Expand All @@ -1389,8 +1389,8 @@ def test_custom_key():
) and isinstance(sampled_batch.__dict__[key], np.ndarray):
assert np.allclose(batch.__dict__[key], sampled_batch.__dict__[key]), \
"Value mismatch for key: {}".format(key)
if isinstance(batch.__dict__[key], Batch
) and isinstance(sampled_batch.__dict__[key], Batch):
if isinstance(batch.__dict__[key],
Batch) and isinstance(sampled_batch.__dict__[key], Batch):
assert batch.__dict__[key].is_empty()
assert sampled_batch.__dict__[key].is_empty()

Expand Down

0 comments on commit 5a1266c

Please sign in to comment.