From d8343f45ada4e4c099fd237d5e6681fdba1cd414 Mon Sep 17 00:00:00 2001 From: Jiangxinz Date: Tue, 13 Jul 2021 11:45:04 +0800 Subject: [PATCH] fix used before assignmen t (#34041) --- python/paddle/fluid/tests/unittests/hdfs_test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/tests/unittests/hdfs_test_utils.py b/python/paddle/fluid/tests/unittests/hdfs_test_utils.py index b7ca06283c..1535fac499 100644 --- a/python/paddle/fluid/tests/unittests/hdfs_test_utils.py +++ b/python/paddle/fluid/tests/unittests/hdfs_test_utils.py @@ -194,8 +194,8 @@ class FSTestBase(unittest.TestCase): fs.touch(file2) fs.download(src_file, dst_file) - self.assertTrue(local.is_exist(dst_file)) local = LocalFS() + self.assertTrue(local.is_exist(dst_file)) local.delete(dst_file) fs.delete(src_file) -- GitLab