-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Index tests in the wrong places #18074
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
get rid of one union test that looked vestigial
@@ -117,6 +117,16 @@ def test_astype_datetime64(self): | |||
dtype='datetime64[ns]') | |||
tm.assert_index_equal(result, expected) | |||
|
|||
def test_astype_object(self): | |||
# NumPy 1.6.1 weak ns support |
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 remove this comment FYI
result = i1.union(i2) | ||
expected = Int64Index(np.arange(0, 30, 2)) | ||
tm.assert_index_equal(result, expected) | ||
for tz in self.tz: |
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.
don't use loops, parametrize
@@ -155,6 +172,27 @@ def test_intersection_bug_1708(self): | |||
result = index_1 & index_2 | |||
assert len(result) == 0 | |||
|
|||
def test_difference(self): |
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.
same
Codecov Report
@@ Coverage Diff @@
## master #18074 +/- ##
==========================================
- Coverage 91.25% 91.23% -0.02%
==========================================
Files 163 163
Lines 50120 50120
==========================================
- Hits 45737 45728 -9
- Misses 4383 4392 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #18074 +/- ##
==========================================
+ Coverage 91.25% 91.26% +<.01%
==========================================
Files 163 163
Lines 50120 50120
==========================================
+ Hits 45737 45740 +3
+ Misses 4383 4380 -3
Continue to review full report at Codecov.
|
Just pushed with parameterizing moved tests. There are a bunch of tests elsewhere that use for loops over |
thanks! |
No description provided.