Skip to content

Commit

Permalink
Simplify test_values_to_numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes E. M. Mosig committed Jan 26, 2021
1 parent f2fe222 commit 1c83a74
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/utils/tensorflow/test_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,4 @@ def test_values_to_numpy(
type(value) for value in sorted(actual_result.values())
]
assert actual_result_value_types == expected_result_value_types
for key, value in actual_result.items():
if isinstance(expected_result.get(key), np.ndarray):
np.testing.assert_equal(value, expected_result.get(key))
else:
assert value == expected_result.get(key)
np.testing.assert_equal(actual_result, expected_result)

0 comments on commit 1c83a74

Please sign in to comment.