Ver Fonte

Import unittest.mock directly.

We don't need to support Python2 anymore.

Signed-off-by: Bastian Venthur <[email protected]>
Bastian Venthur há 5 anos atrás
pai
commit
6351ad8a95
1 ficheiros alterados com 1 adições e 5 exclusões
  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