summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2017-07-07 00:11:27 (GMT)
committerGitHub <noreply@github.com>2017-07-07 00:11:27 (GMT)
commit529746c90584069270cd122920270bd7be38bca3 (patch)
tree2ab4c45cccb38c3778f7fc1cd4433e731cacb877 /Lib
parentbe5ebe58776a02d53bcf5e43ab946b555c0e025f (diff)
downloadcpython-529746c90584069270cd122920270bd7be38bca3.zip
cpython-529746c90584069270cd122920270bd7be38bca3.tar.gz
cpython-529746c90584069270cd122920270bd7be38bca3.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index f21e6ad..3b4891d 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)