-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
API: Relax is-file-like conditions #16150
Conversation
e2e510b
to
57bc69d
Compare
Codecov Report
@@ Coverage Diff @@
## master #16150 +/- ##
==========================================
+ Coverage 90.83% 90.84% +<.01%
==========================================
Files 159 159
Lines 50796 50794 -2
==========================================
- Hits 46143 46142 -1
+ Misses 4653 4652 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16150 +/- ##
==========================================
+ Coverage 90.83% 90.84% +<.01%
==========================================
Files 159 159
Lines 50796 50794 -2
==========================================
- Hits 46143 46142 -1
+ Misses 4653 4652 -1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16150 +/- ##
==========================================
+ Coverage 90.85% 90.88% +0.02%
==========================================
Files 159 159
Lines 50785 50783 -2
==========================================
+ Hits 46141 46152 +11
+ Misses 4644 4631 -13
Continue to review full report at Codecov.
|
should work with one of the s3 buckets (.e.g. |
@jreback : Just to make sure I got it right, it's: Bucket = "pandas-test" Also, do we install |
we already have s3 tests just not streaming ones.
|
you can import |
I was asking about the proper syntax for calling |
bucket is |
57bc69d
to
cd68e91
Compare
@jreback : |
Previously, we were requiring that all file-like objects had "read," "write," "seek," and "tell" methods, but that was too strict (e.g. read-only buffers). This commit relaxes those requirements to having EITHER "read" or "write" as attributes. Closes pandas-devgh-16135.
cd68e91
to
d2efe18
Compare
# see gh-16135 | ||
|
||
# boto3 is a dependency of s3fs | ||
import boto3 |
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.
do we have a skip if s3fs is not installed?
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.
Absolutely. There's a setUp
method in this test class which skips on that exact condition.
ok then, thanks! |
Previously, we were requiring that all file-like objects had "read," "write," "seek," and "tell" methods, but that was too strict (e.g. read-only buffers). This commit relaxes those requirements to having EITHER "read" or "write" as attributes. Closes pandas-devgh-16135.
Previously, we were requiring that all file-like objects had "read," "write," "seek," and "tell" methods,
but that was too strict (e.g. read-only buffers). This commit relaxes those requirements to having EITHER "read" or "write" as attributes.
Closes #16135.