Skip to content

Conversation

Adirio
Copy link

@Adirio Adirio commented Oct 17, 2018

@pep8speaks
Copy link

Hello @Adirio! Thanks for submitting the PR.

@codecov
Copy link

codecov bot commented Oct 17, 2018

Codecov Report

Merging #23199 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #23199      +/-   ##
==========================================
+ Coverage   92.19%   92.19%   +<.01%     
==========================================
  Files         169      169              
  Lines       50956    50956              
==========================================
+ Hits        46977    46978       +1     
+ Misses       3979     3978       -1
Flag Coverage Δ
#multiple 90.61% <100%> (ø) ⬆️
#single 42.27% <100%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/arrays/datetimes.py 97.61% <100%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8d29e7...077d6a9. Read the comment docs.

@Adirio
Copy link
Author

Adirio commented Oct 17, 2018

No idea what happened with the failed test.

@jbrockmendel
Copy link
Member

The failed test is unrelated; don't worry about it.

This does need its own test though.

@Adirio
Copy link
Author

Adirio commented Oct 19, 2018

I have no previous experience with pytest, I guess I need to add a new method to the TestDatetimeArray class here that checks that a ValueError is raised if closed != None while one of the boundaries is not given, but no idea how to check that.

@mroeschke
Copy link
Member

You can use the pytest.raises context manager and see if the examples in the linked issue will raise a ValueError:

with pytest.raises(ValueError):
    pd.date_range(...)

@jreback
Copy link
Contributor

jreback commented Nov 3, 2018

this would need to assert all of the test cases in the OP

@jreback jreback added Datetime Datetime data dtype Error Reporting Incorrect or improved errors from pandas labels Nov 3, 2018
@jreback jreback changed the title Fix #23198 Check boundary undefined with non-default close parameter for DatetimeIndex #23198 Nov 4, 2018
@jreback
Copy link
Contributor

jreback commented Nov 11, 2018

can you merge master and update.

@jreback
Copy link
Contributor

jreback commented Dec 9, 2018

closing as stale. ping if you'd like to continue.

@jreback jreback closed this Dec 9, 2018
@Adirio
Copy link
Author

Adirio commented Mar 8, 2019

@jreback I can merge master if you wish but I can not provide the requested tests right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Datetime Datetime data dtype Error Reporting Incorrect or improved errors from pandas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check boundary undefined with non-default close parameter for date_range

5 participants