From 04734dcfcb1357591fd2eea01fc3d40e1bf5ce8a Mon Sep 17 00:00:00 2001 From: meejah Date: Sun, 22 Apr 2018 13:48:24 -0600 Subject: [PATCH] redundant test code --- src/allmydata/test/test_util.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/allmydata/test/test_util.py b/src/allmydata/test/test_util.py index bb10543d3..774d73792 100644 --- a/src/allmydata/test/test_util.py +++ b/src/allmydata/test/test_util.py @@ -534,13 +534,6 @@ class FileUtil(ReallyEqualMixin, unittest.TestCase): self.failUnlessEqual(fileutil.read(replaced_path), "bar") self.failIf(os.path.exists(replacement_path)) - # when replaced, replacement and backup all exist - fileutil.write(replaced_path, "foo") - fileutil.write(replacement_path, "bar") - fileutil.replace_file(replaced_path, replacement_path) - self.failUnlessEqual(fileutil.read(replaced_path), "bar") - self.failIf(os.path.exists(replacement_path)) - def test_du(self): basedir = "util/FileUtil/test_du" fileutil.make_dirs(basedir)