summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorJoe Pamer <jopamer@users.noreply.github.com>2018-09-25 14:57:36 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-25 14:57:36 (GMT)
commitc8c0249c9e8f61ab7670119a5a5278354df27bbb (patch)
tree79ccb9272364f0e7265b4cedce939b4df5129d38 /Lib/test/test_shutil.py
parent604e7b9931f9e7881a2941816e538f5f15930db8 (diff)
downloadcpython-c8c0249c9e8f61ab7670119a5a5278354df27bbb.zip
cpython-c8c0249c9e8f61ab7670119a5a5278354df27bbb.tar.gz
cpython-c8c0249c9e8f61ab7670119a5a5278354df27bbb.tar.bz2
bpo-32557: allow shutil.disk_usage to take a file path on Windows also (GH-9372)
https://bugs.python.org/issue32557
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index a169c36..9db6aec 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1363,6 +1363,7 @@ class TestShutil(unittest.TestCase):
"disk_usage not available on this platform")
def test_disk_usage(self):
usage = shutil.disk_usage(os.path.dirname(__file__))
+ self.assertEqual(usage, shutil.disk_usage(__file__))
self.assertGreater(usage.total, 0)
self.assertGreater(usage.used, 0)
self.assertGreaterEqual(usage.free, 0)