From c381b3ff58236f4243bfec6eb206cbee968d8779 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Fri, 24 Apr 2020 05:33:00 -0700 Subject: test/external.py: Remove __future__ imports Remove unused resetwarnings() call since unittest.main() does a sys.exit() Signed-off-by: Brian Dolbec --- layman/tests/external.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layman/tests/external.py b/layman/tests/external.py index f2b18cd..e6f408d 100755 --- a/layman/tests/external.py +++ b/layman/tests/external.py @@ -14,9 +14,6 @@ # Sebastian Pipping # -from __future__ import print_function -from __future__ import unicode_literals - '''Runs external (non-doctest) test cases.''' import os @@ -452,7 +449,7 @@ class FetchRemoteList(unittest.TestCase): available = api.get_available() self.assertEqual(available, ['wrobel', 'wrobel-stable']) - + # Test the info of an overlay. info = api.get_info_str(['wrobel'], verbose=True, local=False) test_info = 'wrobel\n~~~~~~\nSource : https://overlays.gentoo.org'\ @@ -769,4 +766,3 @@ class RemoteDBCache(unittest.TestCase): if __name__ == '__main__': filterwarnings('ignore') unittest.main() - resetwarnings() -- cgit v1.2.3-65-gdbad