PyUT: Bugfix environment left-overs.
authorDidier Raboud <odyx@debian.org>
Tue, 22 May 2012 13:40:56 +0000 (15:40 +0200)
committerDidier Raboud <odyx@debian.org>
Tue, 22 May 2012 13:40:56 +0000 (15:40 +0200)
Git-Dch: None

test/test_lsb_release.py

index eecd4e80baeef583c14c75b7e84390acabb25c08..cccc5a965889a5df3e5f6066eefe7edb19e20998 100644 (file)
@@ -125,6 +125,8 @@ class TestLSBRelease(unittest.TestCase):
                os.environ['TEST_APT_CACHE2'] = '35'
                supposed_output.append((35, {'origin': '0RigIn', 'suite': '5uiTe', 'component': 'C03p0nent', 'label': '1ABel'}))
                self.assertEqual(lr.parse_apt_policy(),supposed_output)
+               os.environ.pop('TEST_APT_CACHE1')
+               os.environ.pop('TEST_APT_CACHE2')
 
        @unittest.skip('Test not implemented.')
        def test_guess_release_from_apt(self):
@@ -145,6 +147,7 @@ class TestLSBRelease(unittest.TestCase):
                                   'DESCRIPTION': '(A human-readable description of the release)'}
                os.environ['LSB_ETC_LSB_RELEASE'] = 'test/lsb-release'
                self.assertEqual(lr.get_lsb_information(),supposed_output)
+               os.environ.pop('LSB_ETC_LSB_RELEASE')
 
        @unittest.skip('Test not implemented.')
        def test_get_distro_information(self):