Skip to content

Conversation

@jbrockmendel
Copy link
Member

Introduces a contextmanager version of td.check_file_leaks so we can do more targeted versions of those checks for debugging


data = read_sas(self.file02b, format="xport")
with open(self.file02, "rb") as fd:
data = read_sas(fd, format="xport")
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this actually leaking?

Copy link
Member Author

Choose a reason for hiding this comment

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

IIUC ATM we're passing an open file and the read_sas call closes it incorrectly, so its an anti-leak

Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't make sense; there is a bug in the xport reader; paper it over here is not a great soln.

@jreback jreback added the IO SAS SAS: read_sas label Aug 13, 2020
@jreback jreback added this to the 1.2 milestone Aug 13, 2020
@jreback jreback merged commit ed23eb8 into pandas-dev:master Aug 13, 2020
@jreback
Copy link
Contributor

jreback commented Aug 13, 2020

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IO SAS SAS: read_sas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants