Explorar o código

Import unittest.mock directly.

We don't need to support Python2 anymore.

Signed-off-by: Bastian Venthur <[email protected]>
Bastian Venthur %!s(int64=5) %!d(string=hai) anos
pai
achega
6351ad8a95
Modificáronse 1 ficheiros con 1 adicións e 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