Skip to content

Commit

Permalink
Improve comment; retrigger failed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 31, 2018
1 parent 16c3103 commit d5cf648
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/tests/indexes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ def test_duplicated_inverse(self, indices, keep):
return_inverse=True)
tm.assert_numpy_array_equal(result_isdup, expected_isdup)

# test that result_inv works (and fits together with expected_isdup)
# the following tests the correctness of result_inv in two ways:
# - it needs to fit together with expected_isdup
# - it needs to correctly reconstruct the object
unique = idx[~expected_isdup]
reconstr = unique[result_inv]
tm.assert_index_equal(reconstr, idx)
Expand Down

0 comments on commit d5cf648

Please sign in to comment.