Skip to content

Commit ff0bf76

Browse files
committed
💚 fix mock dependency issue. python 3 has it in unittest so we are not installing it in python 3
1 parent 95bde20 commit ff0bf76

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_repo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fs.path
22
import fs.errors
3-
from mock import MagicMock, patch
43
from nose.tools import eq_, raises
54
from gitfs2.repo import (
65
GitRequire,
@@ -10,6 +9,11 @@
109
make_sure_git_is_available,
1110
)
1211

12+
try:
13+
from mock import MagicMock, patch
14+
except ImportError:
15+
from unittest.mock import MagicMock, patch
16+
1317

1418
@patch("appdirs.user_cache_dir", return_value="root")
1519
@patch("gitfs2.repo.mkdir_p")

0 commit comments

Comments
 (0)