mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
[3.6] Make test_shutil test_disk_usage not depend on the cwd fs (GH-2597) (#2820)
Make test_shutil test_disk_usage not depend on the current working directory's filesystem.
(cherry picked from commit 529746c905
)
This commit is contained in:
parent
04864b491e
commit
8de48fe046
1 changed files with 1 additions and 1 deletions
|
@ -1294,7 +1294,7 @@ class TestShutil(unittest.TestCase):
|
|||
@unittest.skipUnless(hasattr(shutil, 'disk_usage'),
|
||||
"disk_usage not available on this platform")
|
||||
def test_disk_usage(self):
|
||||
usage = shutil.disk_usage(os.getcwd())
|
||||
usage = shutil.disk_usage(os.path.dirname(__file__))
|
||||
self.assertGreater(usage.total, 0)
|
||||
self.assertGreater(usage.used, 0)
|
||||
self.assertGreaterEqual(usage.free, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue