1 |
commit: c381b3ff58236f4243bfec6eb206cbee968d8779 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 24 12:33:00 2020 +0000 |
4 |
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 24 13:54:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/layman.git/commit/?id=c381b3ff |
7 |
|
8 |
test/external.py: Remove __future__ imports |
9 |
|
10 |
Remove unused resetwarnings() call since unittest.main() does a sys.exit() |
11 |
|
12 |
Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org> |
13 |
|
14 |
layman/tests/external.py | 6 +----- |
15 |
1 file changed, 1 insertion(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/layman/tests/external.py b/layman/tests/external.py |
18 |
index f2b18cd..e6f408d 100755 |
19 |
--- a/layman/tests/external.py |
20 |
+++ b/layman/tests/external.py |
21 |
@@ -14,9 +14,6 @@ |
22 |
# Sebastian Pipping <sebastian@×××××××.org> |
23 |
# |
24 |
|
25 |
-from __future__ import print_function |
26 |
-from __future__ import unicode_literals |
27 |
- |
28 |
'''Runs external (non-doctest) test cases.''' |
29 |
|
30 |
import os |
31 |
@@ -452,7 +449,7 @@ class FetchRemoteList(unittest.TestCase): |
32 |
available = api.get_available() |
33 |
self.assertEqual(available, ['wrobel', 'wrobel-stable']) |
34 |
|
35 |
- |
36 |
+ |
37 |
# Test the info of an overlay. |
38 |
info = api.get_info_str(['wrobel'], verbose=True, local=False) |
39 |
test_info = 'wrobel\n~~~~~~\nSource : https://overlays.gentoo.org'\ |
40 |
@@ -769,4 +766,3 @@ class RemoteDBCache(unittest.TestCase): |
41 |
if __name__ == '__main__': |
42 |
filterwarnings('ignore') |
43 |
unittest.main() |
44 |
- resetwarnings() |