Skip to content

Commit

Permalink
up the priority of numpy array comparisons in self.assertEqual (#5906…
Browse files Browse the repository at this point in the history
…7) (#1340)
  • Loading branch information
heitorschueroff authored Jun 22, 2021
1 parent 625c11d commit 8816411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/legacy/test_vocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_vocab_set_vectors(self):
expected_vectors = np.array([[0.0, 0.0], [0.0, 0.0], [0.0, 0.0],
[0.0, 0.0], [0.1, 0.2], [0.5, 0.6],
[0.3, 0.4]])
self.assertEqual(v.vectors, expected_vectors)
self.assertEqual(v.vectors, expected_vectors, exact_dtype=False)

def test_errors(self):
c = Counter({'hello': 4, 'world': 3, 'ᑌᑎIᑕOᗪᕮ_Tᕮ᙭T': 5, 'freq_too_low': 2})
Expand Down

0 comments on commit 8816411

Please sign in to comment.