-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
TST: Split test_excel.py into sub test files #24472 #25334
Conversation
Most of the failures appear to because of the use of the depreciated |
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.
is this a direct split w/o actually changing anything? we much prefer this, its impossible to test what you actually change vs just moved.
Yes I have only moved code into separate files and not made any changes. This was intentional since, as you said, it cannot be tested and also I'd rather push small changes, rather than rearranging and changing code in one PR. I checked the original |
this was quite a while ago, are you sure you started with current master? |
If you can merge master there were some changes made since you opened this PR would need to be split. Generally I'd comment that I think the sub-directories for If I could suggest an alternate structure it would probably look something like:
This is a rather large document to split up and it doesn't need to all be done at once. In fact it may be preferable to do multiple PRs where you split reading tests first, then writing, etc... |
Hi @WillAyd , I have fetched the latest changes from master and then split test_excel.py into three for now as you suggested into common.py, test_reader.py and test_writer.py. However when I run the test_reader.py test module it results in several failures due to the depreciation of 'parse_cols'. I checked test_excel.py at master, that too contains the 'parse_cols' argument. Is this performing correctly? Is it testing to see if a depreciated argument is used? Thanks |
You aren’t getting that error before moving right? Don’t think splitting should affect that so ensure that first but if not push your updates can take a look from there next week
…Sent from my iPhone
On Feb 22, 2019, at 7:30 AM, Steven Beardwell ***@***.***> wrote:
Hi @WillAyd , I have fetched the latest changes from master and then split test_excel.py into three for now as you suggested into common.py, test_reader.py and test_writer.py. However when I run the test_reader.py test module it results in several failures due to the depreciation of 'parse_cols'. I checked test_excel.py at master, that too contains the 'parse_cols' argument. Is this performing correctly? Is it testing to see if a depreciated argument is used? Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
There is no error before the split. Could it be realated to the The error is AssertionError: Warning not set with correct stacklevel. File where warning is raised: pandas\tests\io\excel\common.py != pandas\tests\io\excel\test_reader.py. Warning message: the 'parse_cols' keyword is deprecated, use 'usecols' instead |
Hmm I see there isn't consistency in existing codebase around stacklevel handling so we should maybe as a precursor here make that consistent with @gfyoung I think you've been looking a lot at leveraging |
@WillAyd : The general consensus is continue using |
would love to have this. probably better to start over with a clean copy of master. |
git diff upstream/master -u -- "*.py" | flake8 --diff
In brief, I have tried to split the quite large
test_excel.py
test file into logical chunks. I have done this by first splitting by reading and writing, and then by engine.