Skip to content

Commit

Permalink
Fix tests: Don't test order; total ordering is not guaranteed
Browse files Browse the repository at this point in the history
  • Loading branch information
erezsh committed Sep 11, 2024
1 parent c278d83 commit 26b8f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_diff_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ def test_duplicates(self):

differ = HashDiffer(bisection_factor=2, bisection_threshold=4)
diff = list(differ.diff_tables(self.a, self.b))
self.assertEqual(diff, self.diffs)
self.assertEqual(sorted(diff), sorted(self.diffs))


class TestDuplicates2(DiffTestCase):
Expand Down Expand Up @@ -864,7 +864,7 @@ def test_duplicates2(self):

differ = HashDiffer(bisection_factor=2, bisection_threshold=4)
diff = list(differ.diff_tables(self.a, self.b))
self.assertEqual(diff, self.expected_output)
self.assertEqual(sorted(diff), sorted(self.expected_output))


@test_each_database
Expand Down

0 comments on commit 26b8f23

Please sign in to comment.