]> git.wh0rd.org Git - home.git/commitdiff
test.py: import more stdlib modules
authorMike Frysinger <vapier@gentoo.org>
Tue, 25 Aug 2020 07:17:09 +0000 (03:17 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 25 Aug 2020 07:17:09 +0000 (03:17 -0400)
test.py

diff --git a/test.py b/test.py
index e6436150e4d1029be55be20f5ab59acb08d84850..9edf5ddc0069888783a6b64847662c55a59d4c2b 100755 (executable)
--- a/test.py
+++ b/test.py
@@ -8,28 +8,36 @@ from __future__ import division
 from __future__ import print_function
 
 # pylint: disable=unused-import
-import argparse
-import atexit
-import codecs
+import abc, argparse, atexit
+import base64, binascii
+import codecs, collections, contextlib
 import datetime
 import errno
-import fileinput
-import fnmatch
+import fcntl, fileinput, fnmatch
 import glob
-import io
+import hashlib
+import inspect, io, itertools
+import json
+import logging
 import multiprocessing
 import os
+import pprint
 import re
-import signal
-import subprocess
-import sys
-import time
+import shlex, shutil, signal, socket, struct, subprocess, sys
+import tarfile, tempfile, time, traceback
 import unittest
 
-try:
-    from unittest import mock
-except ImportError:
+if sys.version_info.major < 3:
     import mock
+else:
+    import pathlib
+    from pathlib import Path
+    import typing
+    from typing import (
+        Any, Callable, Dict, Generator, Iterable, Iterator, List, NamedTuple,
+        Optional, Set, Tuple, Union,
+    )
+    from unittest import mock
 
 import requests
 import six