-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: extend check for leaked files #39047
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ dependencies: | |
- brotlipy | ||
- coverage | ||
- pandas-datareader | ||
- pyxlsb | ||
- pyxlsb>=1.0.8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ dependencies: | |
- pyarrow=1.0.0 | ||
- pip | ||
- pip: | ||
- pyxlsb | ||
- pyxlsb>=1.0.8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ dependencies: | |
- pip: | ||
- cython>=0.29.21 | ||
- pyreadstat | ||
- pyxlsb | ||
- pyxlsb>=1.0.8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,4 @@ dependencies: | |
- pyreadstat | ||
- pip | ||
- pip: | ||
- pyxlsb | ||
- pyxlsb>=1.0.8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,6 +118,7 @@ xfail_strict = True | |
filterwarnings = | ||
error:Sparse:FutureWarning | ||
error:The SparseArray:FutureWarning | ||
always::ResourceWarning | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you leave this out? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. python doesn't show ResourceWarnings by default (irronically There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, but then how do we know this is working? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I locally tested whether it errors on |
||
junit_family = xunit2 | ||
|
||
[codespell] | ||
|
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.
why would we ignore connections?
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 disabled them when extending the test to pandas/tests/io since we probably catch some ssl connections from boto3. I will double check whether that is needed. Tests that were previously covered by check_file_leaks have their connections checked.
Do you have an idea what might be causing #39047 (comment) ?
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've never had any luck in tracking down the unclosed ssl socket warnings. the connections part of check_file_leaks was supposed to identify them, but apparently doesnt
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 have a feeling that associating ResoruceWarnings with different tests might be an issue with pytest-xdist. I found a few issues about warnings on their github but nothing that would directly explain what I see in this PR.
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.
could try some CI runs with xdist disabled?
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.
what is the bes way to disable it? I tried to add
-n 0
toaddopts
in setup.cfg but that has no effect as pytest seems to be called with-n auto