Skip to content

WIP/TST: troubleshoot xfails #44429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 56 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
625f081
TST: troubleshoot xfails
jbrockmendel Nov 13, 2021
5131837
remove warning ignore
jbrockmendel Nov 13, 2021
780051e
Merge branch 'master' into xfails
jbrockmendel Nov 13, 2021
8c57a10
Merge branch 'master' into xfails
jbrockmendel Nov 14, 2021
90e4ce4
re-xfail
jbrockmendel Nov 14, 2021
208a4d9
Merge branch 'master' into xfails
jbrockmendel Nov 15, 2021
4988ce6
restore xfail
jbrockmendel Nov 15, 2021
531de69
Troubleshoot windows timeouts
jbrockmendel Nov 15, 2021
11ce3e1
force cI
jbrockmendel Nov 15, 2021
1d90c72
add pytest-timeout to all builds
jbrockmendel Nov 15, 2021
f38b0a0
add to deps
jbrockmendel Nov 15, 2021
727d039
check file leaks
jbrockmendel Nov 15, 2021
59b1f33
Merge branch 'master' into xfails
jbrockmendel Nov 16, 2021
d5fe414
tigher xfail for pytz 2017.3
jbrockmendel Nov 16, 2021
d10c30d
Merge branch 'master' into xfails
jbrockmendel Nov 17, 2021
03d8325
xfail later pytz
jbrockmendel Nov 17, 2021
369ab99
Merge branch 'master' into tst-timeout
jbrockmendel Nov 18, 2021
66f69c7
Merge branch 'master' into tst-timeout
jbrockmendel Nov 19, 2021
f46aa66
missing dep
jbrockmendel Nov 19, 2021
621eb07
Merge branch 'master' into xfails
jbrockmendel Nov 19, 2021
f1b6c5f
check_dtype
jbrockmendel Nov 20, 2021
58f26b4
Merge branch 'master' into xfails
jbrockmendel Nov 20, 2021
f03c38d
Merge branch 'master' of https://github.com/pandas-dev/pandas into xf…
jbrockmendel Nov 21, 2021
f817d2d
re-xfail
jbrockmendel Nov 21, 2021
c709573
Merge branch 'master' into tst-timeout
jbrockmendel Nov 21, 2021
16eb89d
Merge branch 'master' into tst-timeout
jbrockmendel Nov 22, 2021
16405cf
Merge branch 'master' into xfails
jbrockmendel Nov 22, 2021
dd68841
Merge branch 'master' into xfails
jbrockmendel Nov 23, 2021
56c2cf0
Merge branch 'tst-timeout' into xfails
jbrockmendel Nov 23, 2021
8c10450
try to narrow down xfail
jbrockmendel Nov 23, 2021
a52a48e
Merge branch 'master' into xfails
jbrockmendel Nov 23, 2021
a67a141
Merge branch 'master' into xfails
jbrockmendel Nov 24, 2021
5e73a81
Merge branch 'master' into xfails
jbrockmendel Nov 25, 2021
5a4e682
troubleshoot
jbrockmendel Nov 25, 2021
7a190d6
Merge branch 'master' into xfails
jbrockmendel Nov 26, 2021
1665646
Merge branch 'master' into xfails
jbrockmendel Nov 27, 2021
752b2d0
troubleshoot win32 hacks
jbrockmendel Nov 27, 2021
5b16fe1
Merge branch 'master' into xfails
jbrockmendel Nov 28, 2021
fb5ee0f
Merge branch 'master' into xfails
jbrockmendel Nov 28, 2021
59975d4
keep trying
jbrockmendel Nov 28, 2021
18c88fe
Merge branch 'master' into xfails
jbrockmendel Dec 1, 2021
53809f6
Merge branch 'master' into xfails
jbrockmendel Dec 1, 2021
388ecb0
Merge branch 'master' into xfails
jbrockmendel Dec 2, 2021
ed66b04
Merge branch 'master' into xfails
jbrockmendel Dec 3, 2021
d64c4d4
troubleshoot more
jbrockmendel Dec 3, 2021
e56aab1
Merge branch 'master' into xfails
jbrockmendel Dec 4, 2021
147ae13
Merge branch 'master' into xfails
jbrockmendel Dec 6, 2021
18ca101
Merge branch 'master' into xfails
jbrockmendel Dec 7, 2021
4ba64d2
troubleshoot
jbrockmendel Dec 7, 2021
a34b042
not callable
jbrockmendel Dec 7, 2021
974eadd
hope against hope
jbrockmendel Dec 7, 2021
8c9191b
Merge branch 'master' into xfails
jbrockmendel Dec 7, 2021
e6a1ab6
update helper
jbrockmendel Dec 7, 2021
a283de0
Merge branch 'master' into xfails
jbrockmendel Dec 8, 2021
50e3540
Merge branch 'master' into xfails
jbrockmendel Dec 8, 2021
b1485d6
post-rebase fixup
jbrockmendel Dec 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions pandas/tests/frame/constructors/test_from_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ def test_from_records_with_datetimes(self):
arrdata = [np.array([datetime(2005, 3, 1, 0, 0), None])]
dtypes = [("EXPIRY", "<M8[ns]")]

try:
recarray = np.core.records.fromarrays(arrdata, dtype=dtypes)
except (ValueError):
pytest.skip("known failure of numpy rec array creation")
recarray = np.core.records.fromarrays(arrdata, dtype=dtypes)

result = DataFrame.from_records(recarray)
tm.assert_frame_equal(result, expected)
Expand Down
4 changes: 0 additions & 4 deletions pandas/tests/indexes/datetimes/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,10 +651,6 @@ def test_get_indexer_mixed_dtypes(self, target):
([date(9999, 1, 1), date(9999, 1, 1)], [-1, -1]),
],
)
# FIXME: these warnings are flaky GH#36131
@pytest.mark.filterwarnings(
"ignore:Comparison of Timestamp with datetime.date:FutureWarning"
)
def test_get_indexer_out_of_bounds_date(self, target, positions):
values = DatetimeIndex([Timestamp("2020-01-01"), Timestamp("2020-01-02")])

Expand Down
1 change: 1 addition & 0 deletions pandas/tests/io/formats/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -3304,6 +3304,7 @@ def test_repr_html_ipython_config(ip):
"encoding, data",
[(None, "abc"), ("utf-8", "abc"), ("gbk", "造成输出中文显示乱码"), ("foo", "abc")],
)
@td.check_file_leaks
def test_filepath_or_buffer_arg(
method,
filepath_or_buffer,
Expand Down
2 changes: 2 additions & 0 deletions pandas/tests/io/parser/test_dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import pytest

from pandas.errors import ParserWarning
import pandas.util._test_decorators as td

from pandas import DataFrame
import pandas._testing as tm
Expand Down Expand Up @@ -84,6 +85,7 @@ class InvalidDialect:
[None, "doublequote", "escapechar", "skipinitialspace", "quotechar", "quoting"],
)
@pytest.mark.parametrize("value", ["dialect", "default", "other"])
@td.check_file_leaks
def test_dialect_conflict_except_delimiter(all_parsers, custom_dialect, arg, value):
# see gh-23761.
dialect_name, dialect_kwargs = custom_dialect
Expand Down
7 changes: 2 additions & 5 deletions pandas/tests/io/pytables/test_append.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,7 @@ def check_col(key, name, size):
& (df_new.A > 0)
& (df_new.B < 0)
]
tm.assert_frame_equal(result, expected, check_freq=False)
# FIXME: 2020-05-07 freq check randomly fails in the CI
tm.assert_frame_equal(result, expected)

# yield an empty frame
result = store.select("df", "string='foo' and string2='cool'")
Expand Down Expand Up @@ -610,9 +609,7 @@ def check_col(key, name, size):

result = store.select("df_dc", ["B > 0", "C > 0", "string == foo"])
expected = df_dc[(df_dc.B > 0) & (df_dc.C > 0) & (df_dc.string == "foo")]
tm.assert_frame_equal(result, expected, check_freq=False)
# FIXME: 2020-12-07 intermittent build failures here with freq of
# None instead of BDay(4)
tm.assert_frame_equal(result, expected)

with ensure_clean_store(setup_path) as store:
# doc example part 2
Expand Down
3 changes: 1 addition & 2 deletions pandas/tests/io/pytables/test_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,7 @@ def test_select_as_multiple(setup_path):
)
expected = concat([df1, df2], axis=1)
expected = expected[(expected.A > 0) & (expected.B > 0)]
tm.assert_frame_equal(result, expected, check_freq=False)
# FIXME: 2021-01-20 this is failing with freq None vs 4B on some builds
tm.assert_frame_equal(result, expected)

# multiple (diff selector)
result = store.select_as_multiple(
Expand Down
4 changes: 1 addition & 3 deletions pandas/tests/io/pytables/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,7 @@ def test_coordinates(setup_path):

expected = concat([df1, df2], axis=1)
expected = expected[(expected.A > 0) & (expected.B > 0)]
tm.assert_frame_equal(result, expected, check_freq=False)
# FIXME: 2021-01-18 on some (mostly windows) builds we get freq=None
# but expect freq="18B"
tm.assert_frame_equal(result, expected)

# pass array/mask as the coordinates
with ensure_clean_store(setup_path) as store:
Expand Down
14 changes: 7 additions & 7 deletions pandas/tests/plotting/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ def test_dont_register_by_default(self):
@td.skip_if_no("matplotlib", min_version="3.1.3")
def test_registering_no_warning(self):
plt = pytest.importorskip("matplotlib.pyplot")
s = Series(range(12), index=date_range("2017", periods=12))
ser = Series(range(12), index=date_range("2017", periods=12))
_, ax = plt.subplots()

# Set to the "warn" state, in case this isn't the first test run
register_matplotlib_converters()
ax.plot(s.index, s.values)
ax.plot(ser.index, ser.values)
plt.close()

def test_pandas_plots_register(self):
plt = pytest.importorskip("matplotlib.pyplot")
s = Series(range(12), index=date_range("2017", periods=12))
ser = Series(range(12), index=date_range("2017", periods=12))
# Set to the "warn" state, in case this isn't the first test run
with tm.assert_produces_warning(None) as w:
s.plot()
ser.plot()

try:
assert len(w) == 0
Expand All @@ -118,17 +118,17 @@ def test_option_no_warning(self):
pytest.importorskip("matplotlib.pyplot")
ctx = cf.option_context("plotting.matplotlib.register_converters", False)
plt = pytest.importorskip("matplotlib.pyplot")
s = Series(range(12), index=date_range("2017", periods=12))
ser = Series(range(12), index=date_range("2017", periods=12))
_, ax = plt.subplots()

# Test without registering first, no warning
with ctx:
ax.plot(s.index, s.values)
ax.plot(ser.index, ser.values)

# Now test with registering
register_matplotlib_converters()
with ctx:
ax.plot(s.index, s.values)
ax.plot(ser.index, ser.values)
plt.close()

def test_registry_resets(self):
Expand Down
7 changes: 1 addition & 6 deletions pandas/tests/plotting/test_datetimelike.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,7 @@ def check_format_of_first_point(ax, expected_string):
first_line = ax.get_lines()[0]
first_x = first_line.get_xdata()[0].ordinal
first_y = first_line.get_ydata()[0]
try:
assert expected_string == ax.format_coord(first_x, first_y)
except (ValueError):
pytest.skip(
"skipping test because issue forming test comparison GH7664"
)
assert expected_string == ax.format_coord(first_x, first_y)

annual = Series(1, index=date_range("2014-01-01", periods=3, freq="A-DEC"))
_, ax = self.plt.subplots()
Expand Down
5 changes: 5 additions & 0 deletions pandas/tests/plotting/test_hist_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ def test_hist_kde_color(self):

@td.skip_if_no_mpl
class TestDataFramePlots(TestPlotBase):
@pytest.mark.xfail(
reason="2021-12-06 ValueError: view limit minimum -36435.78943428784 is "
"less than 1 and is an invalid Matplotlib date value. This often happens "
"if you pass a non-datetime value to an axis that has datetime units"
)
def test_hist_df_legacy(self):
from matplotlib.patches import Rectangle

Expand Down