Skip to content

TST: Add another test for segfault in C engine #18128

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

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Nov 6, 2017

Not sure why the original PR was closed, but let's bring it to completion.

xref #13833.
Closes #5291.

@gfyoung gfyoung added IO CSV read_csv, to_csv Testing pandas testing functions or related to the test suite labels Nov 6, 2017
@gfyoung gfyoung added this to the 0.21.1 milestone Nov 6, 2017
@codecov
Copy link

codecov bot commented Nov 6, 2017

Codecov Report

Merging #18128 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18128      +/-   ##
==========================================
+ Coverage   91.25%   91.26%   +<.01%     
==========================================
  Files         163      163              
  Lines       50122    50122              
==========================================
+ Hits        45740    45743       +3     
+ Misses       4382     4379       -3
Flag Coverage Δ
#multiple 89.07% <ø> (+0.02%) ⬆️
#single 40.32% <ø> (-0.06%) ⬇️
Impacted Files Coverage Δ
pandas/io/gbq.py 25% <0%> (-58.34%) ⬇️
pandas/core/frame.py 97.75% <0%> (-0.1%) ⬇️
pandas/plotting/_converter.py 65.2% <0%> (+1.81%) ⬆️

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 f7f214b...2bd1311. Read the comment docs.

@@ -359,6 +359,15 @@ def test_parse_trim_buffers(self):
# Check for data corruption if there was no segfault
tm.assert_frame_equal(result, expected)

# This extra test was added to replicate the fault in gh-5291.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth making a different test for this?

Copy link
Member Author

@gfyoung gfyoung Nov 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the whole point was to check whether or not the encoding argument would make a difference (notice that the calls are nearly the same). That's why I added them as such.

@jreback
Copy link
Contributor

jreback commented Nov 6, 2017

ok this is fine merge away

@gfyoung gfyoung merged commit 6f0ff1a into pandas-dev:master Nov 6, 2017
@gfyoung gfyoung deleted the segfault-test-check branch November 6, 2017 17:42
watercrossing pushed a commit to watercrossing/pandas that referenced this pull request Nov 10, 2017
No-Stream pushed a commit to No-Stream/pandas that referenced this pull request Nov 28, 2017
TomAugspurger pushed a commit to TomAugspurger/pandas that referenced this pull request Dec 8, 2017
TomAugspurger pushed a commit that referenced this pull request Dec 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO CSV read_csv, to_csv Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault or UnicodeDecodeError when reading csv-file depending on chunksize.
2 participants