-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
TST: Add regression test for #23986 #25931
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
Conversation
1d58d2a
to
1d25bbe
Compare
Codecov Report
@@ Coverage Diff @@
## master #25931 +/- ##
==========================================
- Coverage 91.81% 91.8% -0.01%
==========================================
Files 175 175
Lines 52578 52578
==========================================
- Hits 48273 48269 -4
- Misses 4305 4309 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #25931 +/- ##
==========================================
- Coverage 91.81% 91.81% -0.01%
==========================================
Files 175 175
Lines 52578 52580 +2
==========================================
+ Hits 48273 48274 +1
- Misses 4305 4306 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit but otherwise lgtm. @mroeschke
@@ -535,6 +535,12 @@ def test_constructor_dtype(self): | |||
result = DatetimeIndex(idx, dtype='datetime64[ns, US/Eastern]') | |||
tm.assert_index_equal(idx, result) | |||
|
|||
@pytest.mark.parametrize('dtype', [object, np.int32, np.int64]) | |||
def test_constructor_invalid_dtype(self, dtype): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just append _raises
to the end of this? Convention we have for tests
Thanks @alexcwatt! If you're up for it, we have more issues that could be closed by adding regression tests. https://github.com/pandas-dev/pandas/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22+label%3A%22Needs+Tests%22 |
dtype
argument #23986 by adding regression testgit diff upstream/master -u -- "*.py" | flake8 --diff