-
-
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: placement of network error catching in s3 tests #19645
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19645 +/- ##
==========================================
- Coverage 91.58% 91.56% -0.03%
==========================================
Files 150 150
Lines 48806 48829 +23
==========================================
+ Hits 44701 44709 +8
- Misses 4105 4120 +15
Continue to review full report at Codecov.
|
Hello @jreback! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on February 12, 2018 at 12:20 Hours UTC |
This I believe exposes some issues that exist with the s3 tests and mocking that have our CI occasionaly fail. I think there is some interaction going on. When run separately these all work.
xref #19585 was trying to remove the resource closing issues (IOW on s3 access we don't close s3). any ideas here: @jorisvandenbossche @TomAugspurger @maximveksler @mdurant |
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.
Does running pytest pandas/tests/io/parser/test_network.py pandas/tests/io/json/test_pandas.py pandas/tests/io/test_parquet.py -r xXs -k s3 -v --tb=short
fail for you ever?
I've tried a handful of times and haven't gotten a failure yet, and I've never seen it locally. Are the failures on a run using pytest-xdist
? Some race condition between creating the fixtures and using them?
pandas/io/common.py
Outdated
@@ -183,7 +183,10 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None, | |||
|
|||
Returns | |||
------- | |||
a filepath_ or buffer or S3File instance, the encoding, the compression | |||
tuple of (a filepath_ or buffer or S3File instance, |
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.
Usually multiple return values are split into separate lines.
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.
these are not multiple return values from different possibilities for the first
this fails for me locally - i was expecting it to fail in the CI actually let me take a closer look |
So these pass now all pass, but have these warnings. any ideas?
|
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.
Lines 273 to 284 in a277108
_arith_doc_FRAME = """ | |
Binary operator %s with support to substitute a fill_value for missing data in | |
one of the inputs | |
Parameters | |
---------- | |
other : Series, DataFrame, or constant | |
axis : {0, 1, 'index', 'columns'} | |
For Series input, axis to match Series index on | |
fill_value : None or float value, default None | |
Fill missing (NaN) values with this value. If both DataFrame locations are | |
missing, the result will be missing |
pandas/tests/io/conftest.py
Outdated
return read_table(path) | ||
|
||
|
||
@pytest.fixture(scope='module') | ||
@pytest.yield_fixture |
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.
I think yield_fixture
s are deprecated. You can just yield
in a regular fixture.
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.
hahah didn't know that!
@@ -194,7 +197,8 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
- return reader, encoding, compression
+ return reader, encoding, compression, True This resulted in a backward incompatible change for |
No description provided.