From: Steve Langasek Date: Tue, 21 May 2013 10:13:08 +0000 (+0200) Subject: test/test_lsb_release.py: also, make lsb_release ignore dpkg origins for the test... X-Git-Tag: archive/raspbian/10.2018112800+rpi1^2~64 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b3cc6c48103ad0dfded780bfb05f78ea6afeb34f;p=lsb.git test/test_lsb_release.py: also, make lsb_release ignore dpkg origins for the test, otherwise the test fails on derivatives. --- diff --git a/test/test_lsb_release.py b/test/test_lsb_release.py index c449a4b..ae1e1c9 100644 --- a/test/test_lsb_release.py +++ b/test/test_lsb_release.py @@ -346,8 +346,10 @@ class TestLSBRelease(unittest.TestCase): f.write('testing/sid') f.close() os.environ['LSB_ETC_DEBIAN_VERSION'] = fn + os.environ['LSB_ETC_DPKG_ORIGINS_DEFAULT'] = '' self.assertEqual(lr.get_distro_information(),supposed_output) os.remove(fn) + os.environ.pop('LSB_ETC_DPKG_ORIGINS_DEFAULT') os.environ.pop('LSB_ETC_DEBIAN_VERSION') if __name__ == '__main__':