From: Gregory P. Smith Date: Fri, 7 Jul 2017 00:11:27 +0000 (-0700) Subject: Make test_shutil test_disk_usage not depend on the cwd fs (#2597) X-Git-Tag: v3.7.0a1~453 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=529746c90584069270cd122920270bd7be38bca3;p=python 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. --- diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index f21e6adf4a..3b4891ddca 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -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)