diff options
author | 2020-04-24 05:33:00 -0700 | |
---|---|---|
committer | 2020-04-24 06:54:16 -0700 | |
commit | c381b3ff58236f4243bfec6eb206cbee968d8779 (patch) | |
tree | 8a34ff2d2fc3d3c0019c8e79ae7d4a5c335022c9 | |
parent | pm_plugins/portage: drop portage._native_kwargs usage (bug 613936) (diff) | |
download | layman-c381b3ff58236f4243bfec6eb206cbee968d8779.tar.gz layman-c381b3ff58236f4243bfec6eb206cbee968d8779.tar.bz2 layman-c381b3ff58236f4243bfec6eb206cbee968d8779.zip |
test/external.py: Remove __future__ imports
Remove unused resetwarnings() call since unittest.main() does a sys.exit()
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
-rwxr-xr-x | layman/tests/external.py | 6 |
1 files changed, 1 insertions, 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 <sebastian@pipping.org> # -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() |