From 1bc22727d55925b97a1beea93dc21821781e6a07 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Mon, 15 Feb 2016 14:50:59 +0100 Subject: [PATCH] patroni/postgresql.py directory could disappear after successfull call of isdir --- tests/test_postgresql.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index ae415484..4c701c60 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -438,7 +438,6 @@ class TestPostgresql(unittest.TestCase): self.assertEquals(self.p.single_user_mode(), 1) @patch('os.listdir', MagicMock(side_effect=fake_listdir)) - @patch('os.path.isdir', MagicMock(return_value=True)) @patch('os.unlink', return_value=True) @patch('os.remove', return_value=True) @patch('os.path.islink', return_value=False)