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

test_swap_memory() accepts no free swap #1979

Closed
wants to merge 1 commit into from
Closed

test_swap_memory() accepts no free swap #1979

wants to merge 1 commit into from

Conversation

vstinner
Copy link

@vstinner vstinner commented Aug 11, 2021

A system can run with no free swap space.

Summary

  • OS: Linux
  • Bug fix: yes
  • Type: tests
  • Fixes: { comma-separated list of issues fixed by this PR, if any }

Description

psutil.tests.test_system.TestMemoryAPIs.test_swap_memory fails if the free swap space is zero. The test makes an assumption which is wrong.

Example when building psutil package on Red Hat Koji build server: https://bugzilla.redhat.com/show_bug.cgi?id=1991086

A system can run with no free swap space.

Signed-off-by: Victor Stinner <vstinner@python.org>
@vstinner
Copy link
Author

I used git commit --amend --no-edit --signoff to sign off my commit.

@vstinner vstinner closed this by deleting the head repository Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant