Skip to content

bpo-35458: Fix test_shutil.test_disk_usage() #11111

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
Dec 11, 2018
Merged

bpo-35458: Fix test_shutil.test_disk_usage() #11111

merged 1 commit into from
Dec 11, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 11, 2018

The following test fails if a different process creates or removes
data disk on the same disk partition:

usage = shutil.disk_usage(os.path.dirname(__file__))
self.assertEqual(usage, shutil.disk_usage(__file__))

Only test that disk_usage() succeed on a filename, but check the
result.

Add also tests on the fields type (must be int).

https://bugs.python.org/issue35458

The following test fails if a different process creates or removes
data disk on the same disk partition:

    usage = shutil.disk_usage(os.path.dirname(__file__))
    self.assertEqual(usage, shutil.disk_usage(__file__))

Only test that disk_usage() succeed on a filename, but check the
result.

Add also tests on the fields type (must be int).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants