diff options
author | Gregory P. Smith <greg@krypto.org> | 2017-07-23 06:00:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-23 06:00:39 (GMT) |
commit | 8de48fe04633974318d48d0abf29e552e7c742c0 (patch) | |
tree | 5776a76a6c46ae613f73b3fca3a6235662ee003a /Lib/test/test_shutil.py | |
parent | 04864b491e3ce0f022e918ad344fb53a99ce2a1b (diff) | |
download | cpython-8de48fe04633974318d48d0abf29e552e7c742c0.zip cpython-8de48fe04633974318d48d0abf29e552e7c742c0.tar.gz cpython-8de48fe04633974318d48d0abf29e552e7c742c0.tar.bz2 |
[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 529746c90584069270cd122920270bd7be38bca3)
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r-- | Lib/test/test_shutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py index 2ad3a21..b2ab1af 100644 --- a/Lib/test/test_shutil.py +++ b/Lib/test/test_shutil.py @@ -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) |