From b775ddd952523443b12d1c28b4c1551d06b2f183 Mon Sep 17 00:00:00 2001 From: jingqinghe Date: Sun, 27 Sep 2020 18:06:44 +0800 Subject: [PATCH] fix bug in test hdfs --- python/paddle/fluid/tests/unittests/hdfs_test_utils.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/hdfs_test_utils.py b/python/paddle/fluid/tests/unittests/hdfs_test_utils.py index 766dcc39af1..fe293161320 100644 --- a/python/paddle/fluid/tests/unittests/hdfs_test_utils.py +++ b/python/paddle/fluid/tests/unittests/hdfs_test_utils.py @@ -158,11 +158,6 @@ class FSTestBase(unittest.TestCase): assert fs.need_upload_download() fs.download(src_file, dst_file) - try: - fs.download(src_file, dst_file) - self.assertFalse(True) - except FSFileExistsError as e: - pass self.assertTrue(fs.is_exist(dst_file)) fs.delete(dst_file) -- GitLab