question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CI: failing timedelta64 test on Linux py37_locale build

See original GitHub issue

This is seen on a few PRs (eg https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=34508&view=logs&jobId=c4100758-acc4-5cd0-72d8-90828968cf00&j=c4100758-acc4-5cd0-72d8-90828968cf00)

=================================== FAILURES ===================================
___ TestSeriesDtypes.test_astype_generic_timestamp_no_frequency[timedelta64] ___
[gw0] linux -- Python 3.7.6 /home/vsts/miniconda3/envs/pandas-dev/bin/python

self = <pandas.tests.series.test_dtypes.TestSeriesDtypes object at 0x7f3d21a6c050>
dtype = <class 'numpy.timedelta64'>

    @pytest.mark.parametrize("dtype", [np.datetime64, np.timedelta64])
    def test_astype_generic_timestamp_no_frequency(self, dtype):
        # see gh-15524, gh-15987
        data = [1]
        s = Series(data)
    
        msg = (
            fr"The '{dtype.__name__}' dtype has no unit\. "
            fr"Please pass in '{dtype.__name__}\[ns\]' instead."
        )
        with pytest.raises(ValueError, match=msg):
>           s.astype(dtype)
E           Failed: DID NOT RAISE <class 'ValueError'>

pandas/tests/series/test_dtypes.py:395: Failed

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
jbrockmendelcommented, Apr 30, 2020

Just to be sure, is the failure newer, or just something that came up now randomly?

I’ve been seeing it for a few days, but its not in the npdev build. Its py37, Linux, numpy 1.18.1

0reactions
jbrockmendelcommented, May 18, 2020

This just stopped failing somehow? Or did we actually do something?

xfailed the affected test in the relevant conditions

Read more comments on GitHub >

github_iconTop Results From Across the Web

CI failure - Windows unit tests · Issue #12372 - GitHub
The quickest fix would be to force py to be 1.8.1, because fixing the tests for windows (by changing the order of nodes...
Read more >
Travis CI build failed - Stack Overflow
But when i pushed my first commit after integrating Travis ,it is giving me this error when it auto builds. /home/travis/build.sh: line 179:...
Read more >
Continuous Integration - The Mesa 3D Graphics Library
The CI runs a number of tests, from trivial build-testing to complex GPU rendering: Build testing for a number of build systems, configurations...
Read more >
Concourse CI
Built on the simple mechanics of resources, tasks, and jobs, Concourse presents a general approach to automation that makes it great for CI/CD....
Read more >
Build trust in continuous integration for your Rust library
A single glitch of internet access in the CI platform might fail our test and will waste our efforts on debugging that failure....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found