Explorar el Código

Import unittest.mock directly.

We don't need to support Python2 anymore.

Signed-off-by: Bastian Venthur <[email protected]>
Bastian Venthur hace 5 años
padre
commit
6351ad8a95
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      tests/__init__.py

+ 1 - 5
tests/__init__.py

@@ -1,6 +1,2 @@
 import unittest  # NOQA
-
-try:
-    from unittest import mock
-except ImportError:
-    import mock  # NOQA
+from unittest import mock  # NOQA