Browse Source

Import unittest.mock directly.

We don't need to support Python2 anymore.

Signed-off-by: Bastian Venthur <[email protected]>
Bastian Venthur 5 năm trước cách đây
mục cha
commit
6351ad8a95
1 tập tin đã thay đổi với 1 bổ sung5 xóa
  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