-
-
Notifications
You must be signed in to change notification settings - Fork 18k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cln tests interval wrt inclusive (#47775)
Clean tests from closed usage
- Loading branch information
Showing
7 changed files
with
50 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import pytest | ||
|
||
from pandas import IntervalIndex | ||
import pandas._testing as tm | ||
|
||
|
||
class TestPickle: | ||
@pytest.mark.parametrize("inclusive", ["left", "right", "both"]) | ||
def test_pickle_round_trip_closed(self, inclusive): | ||
def test_pickle_round_trip_inclusive(self, closed): | ||
# https://github.com/pandas-dev/pandas/issues/35658 | ||
idx = IntervalIndex.from_tuples([(1, 2), (2, 3)], inclusive=inclusive) | ||
idx = IntervalIndex.from_tuples([(1, 2), (2, 3)], inclusive=closed) | ||
result = tm.round_trip_pickle(idx) | ||
tm.assert_index_equal(result, idx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters