Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion fire/core_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
from fire import test_components as tc
from fire import testutils
from fire import trace
import mock

try:
import mock # python 2.x
except ModuleNotFoundError:
from unittest import mock # python 3.x

import six

Expand Down
5 changes: 4 additions & 1 deletion fire/fire_import_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

import fire
from fire import testutils
import mock
try:
import mock # python 2.x
except ModuleNotFoundError:
from unittest import mock # python 3.x


class FireImportTest(testutils.BaseTestCase):
Expand Down
5 changes: 4 additions & 1 deletion fire/fire_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
from fire import test_components as tc
from fire import testutils

import mock
try:
import mock # python 2.x
except ModuleNotFoundError:
from unittest import mock # python 3.x
import six


Expand Down
5 changes: 4 additions & 1 deletion fire/interact_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
from fire import interact
from fire import testutils

import mock
try:
import mock # python 2.x
except ModuleNotFoundError:
from unittest import mock # python 3.x


try:
Expand Down
5 changes: 4 additions & 1 deletion fire/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
from fire import core
from fire import trace

import mock
try:
import mock # python 2.x
except ModuleNotFoundError:
from unittest import mock # python 3.x
import six


Expand Down