diff options
Diffstat (limited to 'pym/portage/tests/bin/test_dobin.py')
-rw-r--r-- | pym/portage/tests/bin/test_dobin.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/pym/portage/tests/bin/test_dobin.py b/pym/portage/tests/bin/test_dobin.py index b9e9bbb1a..6f50d7aba 100644 --- a/pym/portage/tests/bin/test_dobin.py +++ b/pym/portage/tests/bin/test_dobin.py @@ -1,12 +1,16 @@ # test_dobin.py -- Portage Unit Testing Functionality -# Copyright 2007 Gentoo Foundation +# Copyright 2007-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from portage.tests.bin.setup_env import BinTestCase, dobin, xexists_in_D class DoBin(BinTestCase): def testDoBin(self): - dobin("does-not-exist", 1) - xexists_in_D("does-not-exist") - xexists_in_D("/bin/does-not-exist") - xexists_in_D("/usr/bin/does-not-exist") + self.init() + try: + dobin("does-not-exist", 1) + xexists_in_D("does-not-exist") + xexists_in_D("/bin/does-not-exist") + xexists_in_D("/usr/bin/does-not-exist") + finally: + self.cleanup() |