Skip to content

CI: xfail sparse warning #31310

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
jreback opened this issue Jan 25, 2020 · 0 comments
Closed

CI: xfail sparse warning #31310

jreback opened this issue Jan 25, 2020 · 0 comments
Labels
CI Continuous Integration good first issue Sparse Sparse Data Type
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Jan 25, 2020

this is failing builds occasionally. not sure if its a deeper problem. can just xfail for now and investigate.

https://travis-ci.org/pandas-dev/pandas/jobs/641752516

=================================== FAILURES ===================================
__________________________ test_legacy_sparse_warning __________________________
[gw0] linux -- Python 3.6.10 /home/travis/miniconda3/envs/pandas-dev/bin/python
datapath = <function datapath.<locals>.deco at 0x7fd87cf76268>
    def test_legacy_sparse_warning(datapath):
        """
    
        Generated with
    
        >>> df = pd.DataFrame({"A": [1, 2, 3, 4], "B": [0, 0, 1, 1]}).to_sparse()
        >>> df.to_pickle("pandas/tests/io/data/pickle/sparseframe-0.20.3.pickle.gz",
        ...              compression="gzip")
    
        >>> s = df['B']
        >>> s.to_pickle("pandas/tests/io/data/pickle/sparseseries-0.20.3.pickle.gz",
        ...             compression="gzip")
        """
        with tm.assert_produces_warning(FutureWarning):
            simplefilter("ignore", DeprecationWarning)  # from boto
            pd.read_pickle(
                datapath("io", "data", "pickle", "sparseseries-0.20.3.pickle.gz"),
>               compression="gzip",
            )
pandas/tests/io/test_pickle.py:218: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <contextlib._GeneratorContextManager object at 0x7fd87ceed6a0>
type = None, value = None, traceback = None
    def __exit__(self, type, value, traceback):
        if type is None:
            try:
>               next(self.gen)
E               AssertionError: Caused unexpected warning(s): [('ResourceWarning', ResourceWarning("unclosed <socket.socket fd=18, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('10.20.0.67', 37224), raddr=('74.125.202.84', 443)>",), '/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/inspect.py', 732), ('ResourceWarning', ResourceWarning("unclosed <socket.socket fd=19, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('10.20.0.67', 46940), raddr=('172.217.214.95', 443)>",), '/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/inspect.py', 732)]
../../../miniconda3/envs/pandas-dev/lib/python3.6/contextlib.py:88: AssertionError
=============================== warnings summary ===============================
/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/fastparquet/dataframe.py:5
/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/fastparquet/dataframe.py:5
  /home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/fastparquet/dataframe.py:5: FutureWarning: pandas.core.index is deprecated and will be removed in a future version.  The public classes are available in the top-level namespace.
    from pandas.core.index import CategoricalIndex, RangeIndex, Index, MultiIndex
/home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/statsmodels/tools/_testing.py:19
  /home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/statsmodels/tools/_testing.py:19: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead.
    import pandas.util.testing as tm
@jreback jreback added CI Continuous Integration Sparse Sparse Data Type good first issue labels Jan 25, 2020
@jreback jreback added this to the Contributions Welcome milestone Jan 25, 2020
@jreback jreback modified the milestones: Contributions Welcome, 1.1 Jan 26, 2020
keechongtan added a commit to keechongtan/pandas that referenced this issue Jan 27, 2020
…ndexing-1row-df

* upstream/master: (194 commits)
  DOC Remove Python 2 specific comments from documentation (pandas-dev#31198)
  Follow up PR: pandas-dev#28097 Simplify branch statement (pandas-dev#29243)
  BUG: DatetimeIndex.snap incorrectly setting freq (pandas-dev#31188)
  Move DataFrame.info() to live with similar functions (pandas-dev#31317)
  ENH: accept a dictionary in plot colors (pandas-dev#31071)
  PERF: add shortcut to Timestamp constructor (pandas-dev#30676)
  CLN/MAINT: Clean and annotate stata reader and writers (pandas-dev#31072)
  REF: define _get_slice_axis in correct classes (pandas-dev#31304)
  BUG: DataFrame.floordiv(ser, axis=0) not matching column-wise bheavior (pandas-dev#31271)
  PERF: optimize is_scalar, is_iterator (pandas-dev#31294)
  BUG: Series rolling count ignores min_periods (pandas-dev#30923)
  xfail sparse warning; closes pandas-dev#31310 (pandas-dev#31311)
  REF: DatetimeIndex.get_value wrap DTI.get_loc (pandas-dev#31314)
  CLN: internals.managers (pandas-dev#31316)
  PERF: avoid copies if possible in fill_binop (pandas-dev#31300)
  Add test for multiindex json (pandas-dev#31307)
  BUG: passing TDA and wrong freq to TimedeltaIndex (pandas-dev#31268)
  BUG: inconsistency between PeriodIndex.get_value vs get_loc (pandas-dev#31172)
  CLN: remove _set_subtyp (pandas-dev#31301)
  CI: Updated version of macos image (pandas-dev#31292)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration good first issue Sparse Sparse Data Type
Projects
None yet
Development

No branches or pull requests

1 participant