Commit 529746c9 authored by Gregory P. Smith's avatar Gregory P. Smith Committed by GitHub

Make test_shutil test_disk_usage not depend on the cwd fs (#2597)

Make test_shutil test_disk_usage not depend on the current working directory's filesystem.
parent be5ebe58
......@@ -1304,7 +1304,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment