Skip to content

Commit

Permalink
add try/except for the tests related to unittest.mock
Browse files Browse the repository at this point in the history
  • Loading branch information
cokelaer committed Feb 20, 2017
1 parent 664ee27 commit 03de436
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion test/test_browse.py
@@ -1,5 +1,9 @@
from easydev import browser
from unittest.mock import patch

try:
from unittest.mock import patch
except:
from mock import patch


def test_browse(mocker):
Expand Down
5 changes: 4 additions & 1 deletion test/test_platform.py
@@ -1,7 +1,10 @@
from easydev.platform import get_platform, linux_distribution, is_windows
from easydev.platform import is_linux, is_mac

from unittest.mock import patch
try:
from unittest.mock import patch
except:
from mock import patch



Expand Down

0 comments on commit 03de436

Please sign in to comment.