mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-06-06 13:31:31 +00:00
test_update_maintainer.py: Unpatch os.path.isfile after test.
This commit is contained in:
parent
d199de5185
commit
2fa20670c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user