Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779394 - dev-python/pandas-1.2.1-r3 fails test
Summary: dev-python/pandas-1.2.1-r3 fails test
Status: RESOLVED DUPLICATE of bug 773610
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 772500
  Show dependency tree
 
Reported: 2021-03-30 16:00 UTC by Thomas Deutschmann (RETIRED)
Modified: 2021-03-30 16:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-30 16:00:39 UTC
> ======================================================= FAILURES =======================================================
> ________________________________ test_rolling_skew_kurt_large_value_range[kurt-values1] ________________________________
> [gw2] linux -- Python 3.8.8 /usr/bin/python3.8
> 
> method = 'kurt', values = [4.0, -1.289256, -1.2, 3.999946]
> 
>     @pytest.mark.parametrize(
>         ("method", "values"),
>         [
>             ("skew", [2.0, 0.854563, 0.0, 1.999984]),
>             ("kurt", [4.0, -1.289256, -1.2, 3.999946]),
>         ],
>     )
>     def test_rolling_skew_kurt_large_value_range(method, values):
>         # GH: 37557
>         s = Series([3000000, 1, 1, 2, 3, 4, 999])
>         result = getattr(s.rolling(4), method)()
>         expected = Series([np.nan] * 3 + values)
> >       tm.assert_series_equal(result, expected)
> 
> pandas/tests/window/test_rolling.py:1127: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> pandas/_libs/testing.pyx:46: in pandas._libs.testing.assert_almost_equal
>     ???
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> >   ???
> E   AssertionError: Series are different
> E   
> E   Series values are different (42.85714 %)
> E   [index]: [0, 1, 2, 3, 4, 5, 6]
> E   [left]:  [nan, nan, nan, 3.999999999998026, 998313678.0495868, 301989886.8, 4.013584850321814]
> E   [right]: [nan, nan, nan, 4.0, -1.289256, -1.2, 3.999946]
> 
> pandas/_libs/testing.pyx:161: AssertionError
> _________________________________ TestTimestampProperties.test_is_leap_year[tzlocal()] _________________________________
> [gw1] linux -- Python 3.8.8 /usr/bin/python3.8
> 
> self = <pandas.tests.scalar.timestamp.test_timestamp.TestTimestampProperties object at 0x7f256c10>
> tz_naive_fixture = tzlocal()
> 
>     def test_is_leap_year(self, tz_naive_fixture):
>         tz = tz_naive_fixture
>         # GH 13727
>         dt = Timestamp("2000-01-01 00:00:00", tz=tz)
>         assert dt.is_leap_year
>         assert isinstance(dt.is_leap_year, bool)
>     
>         dt = Timestamp("1999-01-01 00:00:00", tz=tz)
>         assert not dt.is_leap_year
>     
>         dt = Timestamp("2004-01-01 00:00:00", tz=tz)
>         assert dt.is_leap_year
>     
> >       dt = Timestamp("2100-01-01 00:00:00", tz=tz)
> 
> pandas/tests/scalar/timestamp/test_timestamp.py:155: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> pandas/_libs/tslibs/timestamps.pyx:1095: in pandas._libs.tslibs.timestamps.Timestamp.__new__
>     ???
> pandas/_libs/tslibs/conversion.pyx:398: in pandas._libs.tslibs.conversion.convert_to_tsobject
>     ???
> pandas/_libs/tslibs/conversion.pyx:625: in pandas._libs.tslibs.conversion._convert_str_to_tsobject
>     ???
> pandas/_libs/tslibs/tzconversion.pyx:53: in pandas._libs.tslibs.tzconversion.tz_localize_to_utc_single
>     ???
> pandas/_libs/tslibs/tzconversion.pyx:585: in pandas._libs.tslibs.tzconversion._tz_convert_tzlocal_utc
>     ???
> pandas/_libs/tslibs/tzconversion.pyx:550: in pandas._libs.tslibs.tzconversion._tzlocal_get_offset_components
>     ???
> /usr/lib/python3.8/site-packages/dateutil/tz/tz.py:222: in utcoffset
>     if self._isdst(dt):
> /usr/lib/python3.8/site-packages/dateutil/tz/tz.py:291: in _isdst
>     dstval = self._naive_is_dst(dt)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> self = tzlocal(), dt = datetime.datetime(2100, 1, 1, 0, 0)
> 
>     def _naive_is_dst(self, dt):
>         timestamp = _datetime_to_timestamp(dt)
> >       return time.localtime(timestamp + time.timezone).tm_isdst
> E       OverflowError: timestamp out of range for platform time_t
> 
> /usr/lib/python3.8/site-packages/dateutil/tz/tz.py:260: OverflowError
> ____________________________ test_rolling_quantile_interpolation_options[data1-linear-0.1] _____________________________
> [gw4] linux -- Python 3.8.8 /usr/bin/python3.8
> 
> quantile = 0.1, interpolation = 'linear', data = [8.0, 1.0, 3.0, 4.0, 5.0, 2.0, ...]
> 
>     @pytest.mark.parametrize("quantile", [0.0, 0.1, 0.45, 0.5, 1])
>     @pytest.mark.parametrize(
>         "interpolation", ["linear", "lower", "higher", "nearest", "midpoint"]
>     )
>     @pytest.mark.parametrize(
>         "data",
>         [
>             [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0],
>             [8.0, 1.0, 3.0, 4.0, 5.0, 2.0, 6.0, 7.0],
>             [0.0, np.nan, 0.2, np.nan, 0.4],
>             [np.nan, np.nan, np.nan, np.nan],
>             [np.nan, 0.1, np.nan, 0.3, 0.4, 0.5],
>             [0.5],
>             [np.nan, 0.7, 0.6],
>         ],
>     )
>     def test_rolling_quantile_interpolation_options(quantile, interpolation, data):
>         # Tests that rolling window's quantile behavior is analogous to
>         # Series' quantile for each interpolation option
>         s = Series(data)
>     
>         q1 = s.quantile(quantile, interpolation)
>         q2 = s.expanding(min_periods=1).quantile(quantile, interpolation).iloc[-1]
>     
>         if np.isnan(q1):
>             assert np.isnan(q2)
>         else:
> >           assert q1 == q2
> E           assert 1.7000000000000002 == 1.7
> E             +1.7000000000000002
> E             -1.7
> 
> pandas/tests/window/moments/test_moments_rolling.py:584: AssertionError
> =================================================== warnings summary ===================================================
> pandas/tests/io/parser/test_c_parser_only.py::test_buffer_rd_bytes[c_high]
> pandas/tests/io/parser/test_c_parser_only.py::test_buffer_rd_bytes[c_low]
>   /var/tmp/portage/dev-python/pandas-1.2.1-r1/work/pandas-1.2.1-python3_8/lib/pandas/io/common.py:558: RuntimeWarning: compression has no effect when passing a non-binary object as input.
>     ioargs = _get_filepath_or_buffer(
> 
> pandas/tests/scalar/timedelta/test_arithmetic.py::TestTimedeltaMultiplicationDivision::test_td_div_nan[nan1]
>   /var/tmp/portage/dev-python/pandas-1.2.1-r1/work/pandas-1.2.1-python3_8/lib/pandas/tests/scalar/timedelta/test_arithmetic.py:445: RuntimeWarning: invalid value encountered in double_scalars
>     result = td // nan
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =============================================== short test summary info ================================================
> FAILED pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_large_value_range[kurt-values1] - AssertionError: ...
> FAILED pandas/tests/scalar/timestamp/test_timestamp.py::TestTimestampProperties::test_is_leap_year[tzlocal()] - Overf...
> FAILED pandas/tests/window/moments/test_moments_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.1]
> ================= 3 failed, 142519 passed, 8405 skipped, 1048 xfailed, 3 warnings in 433.15s (0:07:13) =================
>  * ERROR: dev-python/pandas-1.2.1-r1::gentoo failed (test phase):
>  *   Tests failed with python3.8
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2021-03-30 16:00:56 UTC
Portage 3.0.17 (python 3.8.8-final-0, default/linux/x86/17.0, gcc-10.2.0, glibc-2.32-r7, 5.4.97-gentoo-x86 i686)
=================================================================
System uname: Linux-5.4.97-gentoo-x86-i686-with-glibc2.1.3
KiB Mem:     3106076 total,    551376 free
KiB Swap:    8387560 total,   8386784 free
Timestamp of repository gentoo: Mon, 29 Mar 2021 17:35:51 +0000
Head commit of repository gentoo: d8eb92b30096b66eb2a2c9b615c427f56344bb75

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
ccache version 4.2 [enabled]
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          3.8.8::gentoo, 3.9.2::gentoo
dev-util/ccache:          4.2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

ABI="x86"
ABI_X86="32"
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ADA_TARGET="gnat_2018"
ARCH="x86"
BINPKG_COMPRESS="bzip2"
BROOT=""
CBUILD="i686-pc-linux-gnu"
CCACHE_DIR="/var/cache/ccache"
CFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
CHOST="i686-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
COLLISION_IGNORE="/lib/modules/*"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CPU_FLAGS_X86="mmx mmxext sse sse2"
CXXFLAGS="-O2 -pipe -march=pentium4m -mtune=pentium4m -Wno-error=jump-misses-init -Wno-error=sign-compare"
DEFAULT_ABI="x86"
EDITOR="/usr/bin/mcedit"
ELIBC="glibc"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
EPREFIX=""
EROOT="/"
ESYSROOT="/"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg ccache cgroup config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GCC_SPECS=""
GRUB_PLATFORMS="efi-32 pc"
GSETTINGS_BACKEND="dconf"
HOME="/root"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/10.2.0/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.35.1/info:/usr/share/info"
INPUT_DEVICES="libinput"
IUSE_IMPLICIT="abi_x86_32 prefix prefix-guest prefix-stack"
KERNEL="linux"
L10N="en en-US de de-DE"
LANG="en_US.UTF-8"
LC_MESSAGES="C"
LC_PAPER="de_DE.UTF-8"
LC_TIME="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LIBDIR_x86="lib"
LINGUAS="en de"
LOGNAME="root"
LUA_SINGLE_TARGET="lua5-1"
LUA_TARGETS="lua5-1"
MAIL="/var/mail/root"
MAKEOPTS="--jobs 5 --load-average 7.95"
MANPAGER="manpager"
MOTD_SHOWN="pam"
MULTILIB_ABIS="x86"
NOCOLOR="true"
OFFICE_IMPLEMENTATION="libreoffice"
OPENCL_PROFILE="ocl-icd"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/11/bin"
PHP_TARGETS="php7-3 php7-4"
POSTGRES_TARGETS="postgres10 postgres11"
PRELINK_PATH_MASK="/usr/bin/evolution"
PWD="/root"
PYTHONDONTWRITEBYTECODE="1"
PYTHON_SINGLE_TARGET="python3_8"
PYTHON_TARGETS="python3_8"
QT_GRAPHICSSYSTEM="raster"
ROOT="/"
ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/lib/llvm/11/bin"
RUBY_TARGETS="ruby25 ruby26"
SHELL="/bin/bash"
SHLVL="2"
SSH_TTY="/dev/pts/0"
SYSROOT="/"
TERM="tmux-256color"
TMUX="/tmp//tmux-0/default,3302,0"
TMUX_PANE="%2"
TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1"
USER="root"
USERLAND="GNU"
VIDEO_CARDS="vmware"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
XDG_RUNTIME_DIR="/run/user/0"
XDG_SESSION_CLASS="user"
XDG_SESSION_ID="1"
XDG_SESSION_TYPE="tty"
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-30 16:27:42 UTC
It's not helpful when you file the same bug over and over again, and still refuse to provide at least build logs.

*** This bug has been marked as a duplicate of bug 773610 ***