From 2fa20670c35a8a96c29ebf8a6098c16ec83ccd1c Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 27 Dec 2010 00:33:49 +0100 Subject: [PATCH] test_update_maintainer.py: Unpatch os.path.isfile after test. --- ubuntutools/test/test_update_maintainer.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ubuntutools/test/test_update_maintainer.py b/ubuntutools/test/test_update_maintainer.py index ee406a5..1b5a1fb 100644 --- a/ubuntutools/test/test_update_maintainer.py +++ b/ubuntutools/test/test_update_maintainer.py @@ -151,14 +151,17 @@ class UpdateMaintainerTestCase(unittest.TestCase): #pylint: disable=C0103 def setUp(self): ubuntutools.control.open = self._fake_open + ubuntutools.control.os.path.isfile = self._fake_isfile ubuntutools.update_maintainer.open = self._fake_open ubuntutools.update_maintainer.os.path.isfile = self._fake_isfile - ubuntutools.control.os.path.isfile = self._fake_isfile Logger.stdout = StringIO.StringIO() Logger.stderr = StringIO.StringIO() def tearDown(self): + del ubuntutools.control.open + del ubuntutools.control.os.path.isfile del ubuntutools.update_maintainer.open + del ubuntutools.update_maintainer.os.path.isfile self.assertEqual(Logger.stdout.getvalue(), '') self.assertEqual(Logger.stderr.getvalue(), '') self._files["changelog"] = None @@ -177,7 +180,7 @@ class UpdateMaintainerTestCase(unittest.TestCase): def test_original_ubuntu_maintainer(self): """Test: Original maintainer is Ubuntu developer. - + The Maintainer field needs to be update even if XSBC-Original-Maintainer has an @ubuntu.com address.""" self._files["changelog"] = StringIO.StringIO(_LUCID_CHANGELOG)