Skip to content
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

Fixed bug in NetBSD's execution of virtual_memory() #822

Closed
wants to merge 3 commits into from
Closed

Fixed bug in NetBSD's execution of virtual_memory() #822

wants to merge 3 commits into from

Conversation

khanzf
Copy link
Contributor

@khanzf khanzf commented May 22, 2016

virtual_memory() opened /proc/meminfo as a binary. As such, each line was a binary, but lines 135 and 137 were checking against a string type. This caused str.startswith() to raise a TypeError and fail.
The solution was merely to change the str.startswith() comparison to a binary.

virtual_memory() opened the /proc/meminfo file as a binary. As such, each line
was a binary, but lines 135 and 137 were checking against a string type.
This caused str.startswith() to raise a TypeError and fail.
The solution was merely to change the str.startswith() comparison to a binary.
@coveralls
Copy link

coveralls commented May 22, 2016

Coverage Status

Coverage decreased (-0.06%) to 94.422% when pulling ee36c46 on FarhansCode:virtual-memory-netbsd-fix into e738353 on giampaolo:master.

@giampaolo
Copy link
Owner

NIce, thanks. Please update HISTORY and CREDITS files then this can be merged.

@khanzf
Copy link
Contributor Author

khanzf commented May 23, 2016

Updated.

@khanzf
Copy link
Contributor Author

khanzf commented May 23, 2016

Please use 3f96eb7, the commits afterwards are erroneous and I cannot figure out how to remove them.

@coveralls
Copy link

coveralls commented May 23, 2016

Coverage Status

Coverage remained the same at 94.48% when pulling cedf9db on FarhansCode:virtual-memory-netbsd-fix into e738353 on giampaolo:master.

@khanzf
Copy link
Contributor Author

khanzf commented May 28, 2016

Any updates on this pull request?

@giampaolo
Copy link
Owner

I'm not sure why but the changes you made in ee36c46 are no longer in this PR. This PR as it stands is not right. If you don't know how to fix it perhaps you can make a new one?

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

Successfully merging this pull request may close these issues.

None yet

3 participants